Wat is Difference between Mvc1 architecture and Mvc2
Architecture?
Answers were Sorted based on User's Feedback
Answer / xavier
MVC1
*bit clumsy
*designer and bussiness logic devlopers dependent
*lags in reusability of Apps components
*heres no M V C only (MV)& C
MVC2
*Clear seperation of components
*indepedent woking env
*reusability
*Upgrading appn is easier without touching hard code
*hence simple than (MV)C1
| Is This Answer Correct ? | 6 Yes | 5 No |
Answer / 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 |
Answer / larry
Template Helpers
Areas
Following are supported in MVC 2 and Not 1
Support for Asynchronous Controllers
Support for DefaultValueAttribute in Action-Method Parameters
Support for Binding Binary Data with Model Binders
ModelMetadata and ModelMetadataProvider Classes
Support for DataAnnotations Attributes
Model-Validator Providers
Client-Side Validation
New RequireHttpsAttribute Action Filter
Overriding the HTTP Method Verb
New HiddenInputAttribute Class for Templated Helpers
JsonResult now responds only to HTTP POST requests
New syntax to support HTML Encoding automatically
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / shankar
actually in mvc1 presentation logic and business logic are
dependent so developer and designer are not working
independently..
but in mvc2 presentation logic and business logic are
independent so developer and designer are working
independently..
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / 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 |
Answer / srikanth addani
Actually MVC1 is introduced by Small Talk.In MVC1 it contains only three components i.e,Model View And Controller.
Sun MicroSystems has taken MVC1 and process and consideres as MVC2.It Contains More than three Components.
i.e.
Model,View,Controller,DAO,DTO..
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / chittaranjan meher
Features of MVC1:
1. Html or jsp files are used to code the presentation. To retrieve the data JavaBean can be used.
2. In mvc1 archictecture all the view, control elements are implemented using Servlets or Jsp.
3. In MVC1 there is tight coupling between page and model as data access is usually done using Custom tag or through java bean call.
Features of MVC2:
1. The MVC2 architecture removes the page centric property of MVC1 architecture by separating Presentation, control logic and the application state.
2. In MVC2 architecture there is only one controller which receives all the request for the application and is responsible for taking appropriate action in response to each request.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / god is great
all answers are not clear , Please dont misguide others.
| Is This Answer Correct ? | 3 Yes | 6 No |
Answer / ram
In MVC1 the controller part is controlled and developed by
the developer only.. But in MVC2 the controller part is
developed by the container itself..
| Is This Answer Correct ? | 20 Yes | 28 No |
Answer / reddy
in mvc1 one webcompoent is responsile for halding requst
and sending responce using helper
where as in mvc2 one webcomponent is responcible for
handling requst and anthor webcomponent is responceble for
sending responce using helper
| Is This Answer Correct ? | 24 Yes | 34 No |
what is the purpose of action servlet and action?
what are the type of forward class in Struts?
why we use struts in our web application , means what was drawbacks of servlet ...pls answer
What is the difference between struts and spring? Explain
why servlet is used as controller not JSP?
What is http redirect?
In web.xml file instead of *.do can i write *.ibm, Specify with example
I will explain the scenario now i have a form1 having some fields and i made it extends DynaActionForm. in struts config how can i specify another form form2 which has to extend the form1 please specify is it better to use actionform or dyna action form in applations. is dyna action form is comfortable in declaring form variables of type 'ArrayList<somegenerics>' extend the
how the error can be showed in the jsp page in struts?
How can you create your custom interceptor in struts 2?
What does the term struts mean?
State an example of struts configuration file as an action parameter for action servlet.