• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between MVC and MVC2  RSS feed

 
surendar prabu
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to know the difference between MVC architecture and MVC2 architecture. are they bith the same? or MVC2 is advanced? in which way it is advanced?
 
Rajah Nagur
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MVC
Model -> Java Beans accessed from JSP
View -> JSP
Controller -> Servlets


MVC2 (Struts enforces MVC2)
Model -> EJB/POJO (accessed via action class)
View -> JSP
Controller -> Servlet (Front controller)
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no such thing as MVC2

There is Model1 (everything written in a JSP)
and Model2.

Model2 uses the Model, View, Controller (MVC architecture).
 
Stefan Evans
Bartender
Posts: 1836
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Model1 vs Model2 explained

The literature on Web-tier technology in the J2EE platform frequently uses the terms "Model 1" and "Model 2" without explanation. This terminology stems from early drafts of the JSP specification, which described two basic usage patterns for JSP pages. While the terms have disappeared from the specification document, they remain in common use. Model 1 and Model 2 simply refer to the absence or presence (respectively) of a controller servlet that dispatches requests from the client tier and selects views.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!