Wat is Difference between Mvc1 architecture and Mvc2
Architecture?

Answer Posted / rahul

MVC1 (Page-centric Architecture): There is no clear
distinction between view and a controller. In Java terms,
there is JSP page (view and partial controller) which itself
controls Business logic (Model) that is why it is also
called as page-centric architecture. Fig 2 below shows MVC1
implementation.

MVC2 (Servlet-centric architecture): MVC2 incorporates a
clear separation of view and controller. A controller
receives all the requests, retrieves data from a Model and
forwards it to next view for presentation.

In Java terms, there is a central Servlet (Controller) which
calls business logic (Model) and the forwards it particular
JSP page (View) that is why it is also called
servlet-centric architecture. Diagram below depicts MVC2
implementation

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between validation.xml and validator-rules.xml files in struts?

700


How can you create your custom interceptor in struts 2?

738


What is the purpose of @keyproperty annotation annotation?

770


What are action errors and error and what are the consequences they impose?

791


What are the cons of struts 2?

776


What helpers in the form of jsp pages are provided in struts framework?

753


How can we write our own interceptor and map it for action?

810


What does params interceptor?

718


What do you mean by tiles in struts?

757


How to display validation errors on jsp page?

811


How you will make available any message resources definitions file to the struts framework environment?

769


What are action classes in struts?

726


Why do we need mapdispatchtoprops?

683


List some bundled validators?

782


What is role of action class?

753