JSP Model View Controller

The model-view-controller (MVC) is a software architecture design pattern. It aims to separate application logic from input and presentation.  The MVC design pattern can be used when writing JSPs.

The model is the Java classes. This is where the application data lives and where application operations take place. Through the Java classes, the view receives input for presentation.

The view is the JSP pages. The JSP pages are used to create the interface through which the data in the model is presented.

The controller is the Java servlets. The servlets manipulate the model. They pass input data back to the model – the Java classes.

The MVC relationship is summarized in the diagram below:

Source: http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

Follow

Get every new post delivered to your Inbox.