Site icon TestingDocs.com

Model View Controller( MVC )

Overview

Model View Controller( MVC ) is a web application development model. The main components of this development model are as follows:

Controller

The controller is the heart of the web application. The Controller maintains the entire flow of the web application. This component acts as the entry point for the client’s request and the exit point of the application response to the client. The controller component acts as the mediator between the Model and View components.

Example: Java Servlet

 

Model

The Model component contains the business logic of the web application. The business logic component communicates with the backend resources and gets a result for the given request.

Example: Java Bean/ EJB, Spring

View

The View component contains the presentation logic of the web application. The Model and View components do not talk to each other. The communication between the models should be through the Controller. The View component gets the data from the Model component and applies the presentation logic to the data.

Example: JSP pages

 

Java Tutorials

Java Tutorial on this website:

https://www.testingdocs.com/java-tutorial/

For more information on Java, visit the official website :

https://www.oracle.com/java/

Exit mobile version