The basic MVC Architecture

The basic MVC Architecture


Model View Controller or MVC as it is popularly known as the software design pattern for developing web applications and centralized systems. It is a widely use designed pattern on which the whole struts frameworks stands. A Model View Controller pattern is made up of the following three different parts:


         Model - The lowest level of the pattern which is responsible for maintaining data over the web and application servers.

         View - This is responsible for displaying all or a portion of the data to the user using different view methods.

         Controller - Software Code that controls the interactions between the Model and View.

MVC is popular as it isolates the application logic from the user interface layer and supports separation of concerns. Here the Controller receives all requests for the application and then works with the Model to prepare any data needed by the View. The View then uses the data prepared by the Controller to generate a final presentable response.