Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Model 1

 
aakash bhatt
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Is JSP Model 1 an MVC architecture
Regards,
aakash
 
Debashish Chakrabarty
Ranch Hand
Posts: 231
Firefox Browser Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No its not. Model 1 is the page centric approach in which your JSP page alone processes the incoming request and replies back to client. This leads to large amount of Java code embedded within your JSP page, which doesn't matter for a programmer though but proves bad for the HTML designers who might maintain your page.
Model 2 represents a framework based on the Model-View-Controller (MVC) system. This system consists of a "Model" where the business logic resides, a "View" which is generated by JSP pages and a "Controller" which is a Servlet or a collection of Servlets to provide centralized process handling. You may like to see this for details.
[ February 14, 2003: Message edited by: Debashish Chakrabarty ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!