wood burning stoves 2.0*
The moose likes Struts and the fly likes In MVC1 the controller is JSP where as in MVC2 the controller is servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "In MVC1 the controller is JSP where as in MVC2 the controller is servlet" Watch "In MVC1 the controller is JSP where as in MVC2 the controller is servlet" New topic
Author

In MVC1 the controller is JSP where as in MVC2 the controller is servlet

MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
I read on blogs that in MVC1 the controller is JSP where as in MVC2 the controller is servlet. I didn't get the meaning out of it.
Can anyone please explain?


I am slow but sure
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

MVC1 combines the presentation logic with the business logic, where as MVC2 separates the presentation logic from business logic. And in the Servlet/JSPs, presentation logic is handled by JSPs, etc and the business logic is handled with the Servlets.


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
There is no "MVC 1" or "MVC 2" - there is only "MVC". What does exist are servlet-based patterns called Model 1 and Model 2 (which implements MVC). See http://www.javaranch.com/journal/200603/Journal200603.jsp#a5 for clarification.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In MVC1 the controller is JSP where as in MVC2 the controller is servlet
 
Similar Threads
can JSP be used as controller in MVC
what is difference between MVC1 & MVC2 pattern?
can i write java code in jsp
Difference MVC2 vs MVC ???
Business class under model layer or not