• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Disadvantage of Model 1 architecture

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic