Design patterns
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Friday, May 30, 2003 12:29 AM

what is difference between MVC1 and MVC2 design pattern

Re: Design patterns

Posted By:   Matan_Amir  
Posted On:   Sunday, June 8, 2003 06:56 AM

Hi Srinivasa,

The main difference between them in in the Controller section. In MVC1, the JSP page itself is the controller which calls the Model to update the View. So in a way, it encapsulates both the View and the Controller. It is faster to implement but loses some of the benefits of the MVC pattern.

In the MVC2 architecture, a servlet is used to intercept (Itercepter design pattern?) the requests. It calls the necessary Model and fowards the results to the proper view. This method is a more distict implementation of the three part pattern of MVC and tries to provide all the benefits of using it (and disadvantages).

Hope that helps,

About | Sitemap | Contact