Suggested Pages

Monday, October 8, 2012

MVC (Model View Controller)

MVC is an architectural pattern that solves the problem of separating the presentation layer from the model layer. It suggests to distinguish three distinct entities:
  • Model
  • View
  • Controller

Model is the layer of model objects. These objects implement the business logic and they usually are the most reusable objects of your web application.
View is the presentation layer of a web application. View layer is responsible for the receiving of user inputs and for the providing of responses to users.
Controller is the layer responsible of managing the user inputs received by the View layer and of performing actions on the Model Objects. It's an intermediate layer that permits the separation between Model and View. Moreover Controller layer , after performing actions on the Model layer, chooses the view to return to users.
The main Java Frameworks that make use of MVC pattern are: Spring and Struts.

No comments :

Post a Comment

Suggested Pages