A Techno Blog, mainly about Java

MVC roles

Model (Databases, JavaBeans)
– Stores the application’s state
– Provides access to the application’s data as well as the business rules for modifying the data (accessors and business methods).
– Notifies view when state is changed

View (jsp, html)
– renders the content of the model
– access data from model and decide how to present it
– forward user input to controller

Controller (Servlets)
– defines application behavior
– it processes user input and maps them into actions to be performed by the model
– selects views to be rendered

August 23, 2004 - Posted by | Patterns & UML

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: