Wat is Difference between Mvc1 architecture and Mvc2
Architecture?

Answers were Sorted based on User's Feedback



Wat is Difference between Mvc1 architecture and Mvc2 Architecture?..

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

Wat is Difference between Mvc1 architecture and Mvc2 Architecture?..

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

Wat is Difference between Mvc1 architecture and Mvc2 Architecture?..

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

Wat is Difference between Mvc1 architecture and Mvc2 Architecture?..

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

Wat is Difference between Mvc1 architecture and Mvc2 Architecture?..

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

Wat is Difference between Mvc1 architecture and Mvc2 Architecture?..

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

Wat is Difference between Mvc1 architecture and Mvc2 Architecture?..

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

Wat is Difference between Mvc1 architecture and Mvc2 Architecture?..

Answer / god is great

all answers are not clear , Please dont misguide others.

Is This Answer Correct ?    3 Yes 6 No

Wat is Difference between Mvc1 architecture and Mvc2 Architecture?..

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

Wat is Difference between Mvc1 architecture and Mvc2 Architecture?..

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

Post New Answer

More Struts Interview Questions

what is request processor class ?

10 Answers   Fidelity,


What is the use of execAndWait interceptor?

0 Answers  


What is struts in java with example?

0 Answers  


What is the forward action utilized for?

0 Answers  


What is the purpose of @results annotation?

0 Answers  






How data transfered from one formbean to another formbean?

4 Answers  


Can u call Action class methods fro struts-config.xml file?

2 Answers   iGate,


List some struts tag libraries?

0 Answers  


Why was reload removed from struts (since 1.1)?

0 Answers  


What is execute method in struts?

0 Answers  


What are the classes used in struts?

0 Answers  


What do you mean by a custom tag?

0 Answers  


Categories