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

Why do we need struts?

0 Answers  


What is struts 2 framework in java?

0 Answers  


What is xml based validation in struts2?

0 Answers  


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

0 Answers  


Which parser is used in Struts to parse the Structconfig.xml file.

21 Answers   iFlex,






is it possible to see actionservlet in my system. if yes how

5 Answers  


Are interceptors thread safe?

0 Answers  


What is the purpose of @conversion?

0 Answers  


What are different Struts2 tags? How can we use them?

0 Answers  


Struts follows which design patterns?

4 Answers   IGT,


What are the components of struts?

0 Answers  


Main reasons for using servlet as a controller in struts. why not jsp

5 Answers  


Categories