Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

MVC architecture

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can any one explain the difference between MVC type1 and MVC type2 architure.if not can u provide any links to the articles regarding the above mentioned .thank you
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Model 1 embeds navigation in the JSPs. It tends to be brittle when the number of pages gets large.

Model 2 combines JSPs with a servlet, usually a single front controller, which handles the navigation chores and leaves the JSPs to concentrate on presentation. All requests are sent from JSPs to the front controller servlet.
Some purists argue that because of missing out on the push aspect (the view pulls the data from the model in order to display tables, etc) of the true Model-View-Controller pattern, the Model 2 architecture shouldn't be called MVC. Nevertheless, the term "web MVC" is here to stay.

Struts and Java Server Faces are based on model 2 MVC.
 
Ranch Hand
Posts: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The Model 2 architecture shouldn't be called MVC


Is it Model 1 ?
 
Sheriff
Posts: 67619
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Article.
 
author
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good article here:

http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html


Model 2 is what, you should be more interested in and it is good to know, what model 1 is.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic