Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic