MVC or Model View Controller; it is a software design pattern for developing web application. The MVC contain three parts. They are:
MVC is popular because it isolates the application logic from the user interface layer and supports separation of concerns. In the MVC controller accept all request for application and its work in model and display to view. The view then uses the data prepared by the controller to generate a final presentable response. The diagramatically representation of MVC as follows.
The main responsible in the model is managing application data.
The view helps to present the data in the application to the user. They are script-based template systems such as JSP, ASP, PHP and very easy to integrate with AJAX technology.
The controller responds to user input and performs interactions on the data model objects. It is responsible to control the relation between models and views. The controller receives input, validates it, and then performs business operations that modify the state of the data model. It responds to user input and performs interactions on the data model objects.