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

Disadvantage of Model 1 architecture

 
amit sanghai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi everybody,

One disadvantage of Model 1 (Simple) architecture is that each of the JSP pages is individually responsible for managing application state and verifying authentication and security.
Please explain this and why is this not required in MVC architecture? Who does this in MVC architecture?
 
sree bk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
In Nodel 1 the JSP has to (i)do control logic (role of controller) as well as application logic(through beans ie function of model) (ii) present the results to the user (role of view).
In Model 2 these functions are separated. The users request first goes to a servlet which controls flow and uses beans for application logic. The results are then presented by the JSP whose role in this case is to do the presentation only.
Thus SERVLET - CONTROLLER
BEANS - MODEL
JSP - VIEW
Hope this helps
regards
sree bk
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic