Wat is Difference between Mvc1 architecture and Mvc2
Architecture?

Answer Posted / ramkishore

MVC is a design pattern.
It contains two models. MVC Model 1, MVC Model 2.
Struts framework implements MVC Design Pattern.
Struts can implement Model 1 and Model 2.
Model 2 most properly describes the application of MVC in a
Web-Application context.
Following are the important feature of MVC1 architecture:
(1) HTML or JSP files are used to code the presentation. JSP
files use java beans to retrieve data if required.
(2)MVC1 architecture is page-centric design all the business
and processing logic means any JSP page can either present
in the JSP or may be called directly from the JSP page.
(3)Data access is usually done using Custom tag or through
java bean call.
Therefore we can say that in MVC1 there is tight coupling
between page and model.
Following are the important feature of MVC2 architecture
(1)This architecture removes the page-centric property of
MVC1 architecture by separating Presentation, Control logic
and Application state
(2)In MVC2 architecture there is one Controller which
receive all request for the application and is responsible
for taking appropriate action in response to each request.
Second one is Model which is represented by JavaBeans,
business object, and database.
Third one is View or is JSP page it takes the information
provided by Controller and Module and presents it to user..

The main difference between MVC-I and MVC-II is in MVC-I all
the view,control elements are implemented using Servlets. in
MVC-II the view is implemented using JSP,and the controller
is implemented using Servlets,as JSP provides better user
interface than Servlets

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List some struts tag libraries?

773


What is the significance of logic tags in Struts?

794


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

807


What is the role of a handler in mvc based applications?

994


Explain about struts relation to html tags?

766


how to connect from struts to database through hibernet and where u can modify the class

2339


What do you mean by action errors and what are the results they force?

851


Is struts action class singleton?

774


What is actioninvocation in struts2?

816


What is the purpose of struts.xml in struct2?

896


What do you mean by the abstract package in struts2, and what is its utilization?

761


What are action errors and error?

823


Explain integrate log4j in struts2 application?

805


What is life cycle of an interceptor?

798


Which design pattern the interceptors in struts2 is based on?

736