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 are the two scope types for formbeans?

608


how to develop the submit and search operations in single jsp using struts?

2558


What is apache struts cve 2017 5638?

548


Why actionservlet is singleton in struts?

594


What are the steps of struts installation?

571






How to build struts application in eclipse?

526


How long do struts last?

530


What is the default suffix for Struts2 action URI and how can we change it?

524


How do I install struts?

564


How to get data from the velocity page in a action class?

567


What is the procedure of operation of a form tag?

554


Explain struts.devmode?

566


What is the use of web xml in struts2?

523


What are the aware interfaces in struts2?

550


What is the purpose of plug-in tag in struct-config.xml?

493