What is the main difference between Mvc1 and Mvc2 Architecture??

Answers were Sorted based on User's Feedback



What is the main difference between Mvc1 and Mvc2 Architecture??..

Answer / pradeep c

The main difference is MVC1 Combines both presentation
logic with the Business logic. But, Mvc2 gives seperation
between presentation and business logic.

Is This Answer Correct ?    96 Yes 11 No

What is the main difference between Mvc1 and Mvc2 Architecture??..

Answer / 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

What is the main difference between Mvc1 and Mvc2 Architecture??..

Answer / brainwaves4all

There is nothing called MVC1 and MVC2.

MVC is an architecture for Application development in general. It is not specific to Desktop Applications or Web Applications.

MVC was designed considering the scalability aspect of an application development architecture which implements the clearest possible separation of concerns among its components so as to produce a well de-coupled and highly extensible Application as a result.

The MVC1 and MVC2 confusion comes in due to the Model1 and Model2 designs promoted for the use of JSP and related technologies in Web Application development. So, Model1 and Model2 DO NOT equate to MVC1 and MVC2 respectively for the simple reason that the latter duo do not exist!

Model1 design of JSP puts all logic (both presentation and business kind) in the JSP pages. It has the often dreaded JSP-calling-a-JSP scenario. The scenario is dreaded for the simple fact that most of the business logic is exposed to the world and with raising complexity of the application, the problems of handling the various flows grow enormously. This happens to be the page-centric design which is flawed when it comes to developing scalable applications. Whereas, for simple, small, and use-&-throw applications it is suitable due to its simplicity. The simplicity being one single place for handling most of your logic. This tends to have a lot of redundancy of code when many JSPs perform overlapping functions, though. This makes for another reason why this design is not suitable for large-scale applications.

Model2 design of JSP falls in line with the popular MVC architecture and promotes clear separation of concerns among the components making up the application. The one most important advantage is the resilience of the application to change requests and its ability to scale-up effortlessly. This makes it very suitable for application development of any kind, be it tiny or huge. To this end, JSP pages form the View part, java servlet forms the Controller part, and plain java class files and javaBean classes form the Model part, in this design. The flows follow the MVC architecture's prescriptions.

Please note that there is no mention of the technologies used in MVC architectural implementations in the above response. This is consciously done to drive the point that MVC is an application development architecture that does not concern itself with what technologies implement it in the actual product.

Is This Answer Correct ?    21 Yes 3 No

What is the main difference between Mvc1 and Mvc2 Architecture??..

Answer / jagadeesh b.n

Mvc1:In mvc1 all the
presentationlogic+controllerlogic+persistancelogic are
bounded together

Mvc2:In mvc2 all the
presentationlogic+controllerlogic+persistancelogic are
bounded separately

And Mvc1 and Mvc2 is also called as Model1 and Model2

Is This Answer Correct ?    23 Yes 7 No

What is the main difference between Mvc1 and Mvc2 Architecture??..

Answer / harish kumar

In model1 only JSP and Beans are involved . JSPs are used
for logic and presentation and JSP decides the flow of
control. beans work as model.
Whereas in Model2 there is servlet that act as a front
controller i.e. all the requests are handled by the front
controller and forwarded to JSPs or model . therefore
presentation and business logic remains separate in model2.

Is This Answer Correct ?    15 Yes 5 No

What is the main difference between Mvc1 and Mvc2 Architecture??..

Answer / ravi

The main dfeerence between mvc1 and mvc2 is..
In mvc1 we can have multiple controller servlets but in
mvc2 we can have only one controller servlet.For example
struts frame work is built on mvc2 architecture, which is
having only one controller i.e ActionSErvlet.

Is This Answer Correct ?    32 Yes 29 No

What is the main difference between Mvc1 and Mvc2 Architecture??..

Answer / bhaskar jindam, hyd

Hi,
there is no MVC1 and MVC2 in struts.
I.e. model1 and model2(MVC)
struts means MVC or model2.

your question is wrong.

Is This Answer Correct ?    20 Yes 47 No

Post New Answer

More Struts Interview Questions

What is the purpose of @beforeresult?

0 Answers  


How to display validation errors on jsp page?

0 Answers  


What is validate() and reset() functions?

0 Answers  


Can we use struts and spring together?

0 Answers  


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

0 Answers   Polaris,






What is the purpose of '@keyproperty'?

0 Answers  


What is the purpose of @validations annotation?

0 Answers  


What is actionservlet?

0 Answers  


Explain about the process of functioning of the struts program?

0 Answers  


What is the difference between struts and spring? Explain

0 Answers  


What does action do in struts?

0 Answers  


What are struts in java?

0 Answers  


Categories