Explain MVC architecture relating to J2EE
by, 01-01-2012 at 04:31 PM (7694 Views)
MVC or Model View Controller architecture divides display functionality and maintains data to reduce the degree of coupling between components.
A model presents the state and core business logic. Data present in database is mapped by the model and holds the core business logic.
A View renders modelís contents. Data is accessed by a view from the model and display logic is added for presentation of the data.
A Controller performs the function of glue b/w a view and a model. Requests are delegated by controller for state and application logic. Logic gets centralized to dispatch the requests to next view that is dependent upon the input parameters from application state and client. Servlet and JSP pages are decoupled by controller, by view selection handling.