Bookmark Topic Watch Topic
  • New Topic

what is difference between MVC1 & MVC2 pattern?

 
sandy mahajan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

please tell me the diff. between mvc1 & mvc2 pattern?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Answer from the Javaranch FAQ.
 
Anil Gautam
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
In brief,
MVC1: where jsp handle the request and generates response after calculating businesslogic (jsp plays model view and controller).
MVC2: where Servlet is as a controller, jsp as a view and model can be any java class, bean etc.
[ April 30, 2008: Message edited by: Ben Souther ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Anil Gautam:
In brief,
MVC1: where jsp handle the request and generates response after calculating businesslogic (jsp plays model view and controller).
MVC2: where Servlet is as a controller, jsp as a view and model can be any java class, bean etc.


This is not correct.
There is no MVC1

See the link provided by Christophe
 
Anil Gautam
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
Yes, this is Correct that there is no MVC1.
There is Model1 and Model2 where Model2 refers to MVC.
Thanks Ban!
[ May 01, 2008: Message edited by: Anil Gautam ]
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Anil Gautam,

well,model2-->MVC then

model1-->?

thanks & regards,
seetharaman
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by seetharam venk:

model1-->?


Model1 is not MVC.
In this architecture everything is done in the JSP.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thanks a lot BEN
 
Thennam Pandian
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

Jsp will be converted to Servlet. Now explain me the difference between

Model1 and Model2..
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thennam, have you read the FAQ entry Christophe linked to? It answers your question.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Thennam Pandian:
Jsp will be converted to Servlet.
That's an implementation detail that has nothing to do with application structure.

Now explain me the difference between Model1 and Model2..
See this article (and you might want to think about posting in a less demanding fashion).
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thennam,

Please take care not to hi-jack other peoples threads.
If you have a question of your own, please start a new thread.
Thank you
-Ben
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!