File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "MVC architecture" Watch "MVC architecture" New topic

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="" target="_blank" rel="nofollow"></a>
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

The Model 2 architecture shouldn't be called MVC

Is it Model 1 ?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63869


[Asking smart questions] [About Bear] [Books by Bear]
ak pillai
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
Good article here:

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:
subject: MVC architecture
It's not a secret anymore!