Friday, February 2, 2007

What is the actual difference between MVC and MVC Model2?

a. MVC1 is architecture, which does not include struts framework in it, whereas in case of MVC2 it includes struts frame work. MVC1 is called model1 and MVC2 is called model2.

b. MVC1 is architecture, which does not include struts framework in it, whereas in case of MVC2 it includes struts frame work. MVC1 is called model1 and MVC2 is called model2.

c. In MVC1 architecture only one controller is responsible for both business logic and to send control for the other model components. Where as in MVC2 the business logic is separated from control components. And only one controller is responsible for taking all the requests and responses. And servlet acts as a controller.

d. Mvc is divided that our middle tier architecture should divide in three parts like model, view and controller. But it doesn’t know what are those components.
Where as model2 arch tells that model is Ejb/java bean, view is jsp, controller is servlet.

SOURCE : www.referjava.com

No comments: