What is the main difference between Mvc1 and Mvc2 Architecture??

Answer Posted / baba

There is nothing like MVC1 or MVC2. Sun specification talks
about Model - 1 and Model - 2 architecture. MVC or Model -
View - Controller architecture is equivalent to the Model -
2 architecture. In MVC the central idea is separation of
business logic and presentation logic, which was a
shortcoming of the Model - 1. You cannot have complex
business logic in your JSP, thats bad practice. In Struts
the ActionServlet is based on the FrontController Design
pattern. Ideally in MVC there are JSP pages to handle the
presentation logic, the model to encapsulate business data
and manipulation logic and a controller to co-ordinate
between the view and model.

Is This Answer Correct ?    32 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do struts do?

723


How does one create an action in struts 2?

703


What is apache struts vulnerability?

709


What configuration changes are required to use resource files in Struts?

778


What validate() and reset() method does ?

756


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

760


Describe the mvc on struts?

726


What is interceptor? And life cycle methods of interceptor?

758


What is the purpose of @createifnull annotation annotation?

819


How you will enable front-end validation based on the xml in validation.xml?

771


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

805


What are the reasons for an error message not being displayed while developing struts application?

733


Explain about the tag?

847


What’s the difference between struts and espresso?

697


What is a custom tag?

707