What is the advantage of mvc-2 over mvc-1?

Questions by challanaveen

Showing Answers 1 - 35 of 35 Answers

anjaneyulu

  • Oct 13th, 2006
 

i want to know the answer

  Was this answer useful?  Yes

satish

  • Oct 13th, 2006
 

Mvc2- having central control while mvc-1 is not.

  Was this answer useful?  Yes

srikanthnarra

  • Oct 18th, 2006
 

In MVC1 SRVLETS ACTS AS A CONTROLLER WHERE AS IN MVC2 JSP ACTS AS A CONTROLLER.SO IN MVC2 PRESENTATION AND BUSINESS LOGIC LAYERS ARE SEPARATED AND WHERE AS IN MVC1 BOTH PRESENTATION AND BUSINESS LAYERS ARE IN SAME COMPONENT(CONTROLLER)

  Was this answer useful?  Yes

june.45

  • Oct 19th, 2006
 

In MVC-1 the JSP acts as the model and the controller. In MVC-2, a seperate servlet acts as the controller while the JSP acts as the view.

  Was this answer useful?  Yes

Prasant

  • Oct 30th, 2006
 

As Per My Experience .MVC-1 Has also Controller which is generated by the server.When we execute the jsp file that time jsp file generate a servlet application.Which is controller.

REgards

Prasant

  Was this answer useful?  Yes

Arun Rajput

  • Nov 16th, 2006
 

For every request you have common entry point

cleaner and resuable code

easy to maintain and scalibility

  Was this answer useful?  Yes

pembarthimahender

  • Nov 28th, 2006
 

In MVC-1 pattern there is no separation of controller and the business logic but in MVC-2 pattern separation is there.

 

 

best regards,

pembarthi mahender

  Was this answer useful?  Yes

siva gangadhar.s

  • Jan 10th, 2007
 

Main difference between MVc-2 and mvc-1 .in mvc 2 business logic is separed from view. where as in mvc1 both are commonly controlled by controller.

  Was this answer useful?  Yes

Jiansen Niu

  • Jan 18th, 2007
 

In MVC-1 controller and model are not seperated -- they are "delegated". MVC-1 is used extensively in Swing, Like JTree, JTable etc. MVC-2 is a strict M-V-C model, controller and model are seperated, most web applications using this design pattern, and most MVC design patterns are based on MVC2, like Struts.

  Was this answer useful?  Yes

Tarique A. K.

  • Jan 29th, 2007
 

In MVC-1, Model is not HTTP aware.

  Was this answer useful?  Yes

vimal

  • Mar 4th, 2007
 

In MVC-2 the model implementing business logic and view  implementing presentation logic and controller implementing request-processing logic, data validation logic, session management. so the clean seperation of logics are available in MVC-2, suppose if any logic got disturbed there is no problem towards other logics. where as MVC-1 only either servlet or JSP should act as a controller there is no clean seperation of logics if any one got disturbed the entire project would be disturbed.

  Was this answer useful?  Yes

Romal

  • Mar 16th, 2007
 

MVC 1 :

 Model is simple java classess
        view  is servlet with more java coding part
        controller is also servlet

MVC 2 :

 Model is simple java classess
        view  is JSP and no more java coding part
        controller is servlet

  Was this answer useful?  Yes

csguna6

  • Sep 13th, 2008
 

I am denoting both the mvc1 and mvc2 !

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 architecture 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 the entire request for the application and is responsible for taking appropriate action in response to each request.

  Was this answer useful?  Yes

paromita

  • May 23rd, 2009
 

In MVC 1, the view is not separate from the controller... ie the presentation logic as well as the business logic is written in the same place. However, in MVC 2, the view is separate from the controller. Thus the adv is that, MVC 2 is a properly latered architechture.... any changes can be incoorprated very easily without disturbing the existing code much. Also it makes ur application more flexible.... as since ur view is completely separate from the business logic, changing ur view representation from say jsp to jsf will be much easier...

  Was this answer useful?  Yes

PriyankN

  • Mar 6th, 2011
 

The question itself is wrong. It should have been difference between Model1 and Model2. There is nothing called MVC1 in actual. The term MVC itself stands for Model-View-Controller, which clearly seperates the three layers, so how can there be a clubbing of the view and model in so called MVC1.What the people have been explaining here as MVC1 is actually Model1. Read this on wikipedia and refer to the 'Misconceptions' section,in particular the last line in the section:
http://en.wikipedia.org/wiki/Model_2

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions