aspose file tools*
The moose likes Servlets and the fly likes MVC architecture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "MVC architecture" Watch "MVC architecture" New topic
Author

MVC architecture

rai talari
Ranch Hand

Joined: Jan 31, 2006
Posts: 34
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


nothing is impossible in the world even the word impossible sounds as I'M'Possible.
Manuel Palacio
Ranch Hand

Joined: Oct 16, 2000
Posts: 45
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.


<a href="http://www.newinstance.net" target="_blank" rel="nofollow">http://www.newinstance.net</a>
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

The Model 2 architecture shouldn't be called MVC

Is it Model 1 ?


Groovy
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60975
    
  65

Article.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ak pillai
author
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
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.


java j2ee job interview questions with answers | Learn the core concepts and the key areas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MVC architecture