MVC-1 vs MVC-2

MVC-1 vs MVC-2


Posted in : Java Posted on : August 29, 2011 at 4:55 PM Comments : [ 0 ]

In this section, you will learn about the difference between MVC 1 & MVC 2.

MVC-1 vs MVC-2

In this section, you will learn about the difference between MVC 1 & MVC 2.

Architectural Diagram

MVC 1 Architecture

 

MVC 2 Architecture

Difference Between MVC 1 & MVC 2

MVC  1

MVC 2

MVC1 associates the presentation logic with the business logic. MVC 2 isolates or disassociates the presentation logic from business logic
In MVC1, only one component is responsible for receiving request and sending response. In MVC2, there is separate components for receiving and  sending response. i.e. Controller & View.
In MVC 1, business logic and presentation Logic is combined so web designer and web developer cant work simulateously. Since both logics are separate that's why designer and developer can work together.
Doesn't support reusability of application components. Reusability of components
In MVC 1, controller and model,both are JSP. While controller is servlet and model is java class.
In MVC1 there is tight coupling between page and model as data access is usually done using Custom tag or through java bean call.  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.
Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics