What is the difference between mvc and mvc2 architecture?

I m confuse.

Showing Answers 1 - 6 of 6 Answers

akantilal

  • Jun 12th, 2007
 

MVC1 architecture is the one where the controller & view logic are combined in a single unit and the model is a separate unit. This was the case with early JSP based applications where JSP would include the controller logic, pull the data from the model and present it to the user.

MVC2 architecture is one where all these 3 pieces are separate units. The controller receives the client requests, pulls the data from the model, stores it in some shared scope for use by the view (JSP), then redirects to the appropriate view for presentation to the user. In general, all your JSP Pages do is displaying data stored in shared session and.or application scopes which is populated by some servlet, then you are following the MVC2 architecture. One of the examples for this is the Struts framework.

  Was this answer useful?  Yes

sampra

  • Mar 4th, 2008
 

in the mvc 1 all the view model and presention were keept at only one place but in mvc 2all thse thingshas putted together

  Was this answer useful?  Yes

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