• Post Reply Bookmark Topic Watch Topic
  • New Topic

Design issue in presentation tier

 
Po-yu Chien
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is common in web application to adopt helper classes to bridge presentation tier and business tier. I have some question about helper class strategy, though.
According to Model-View-Controller architecture, the only bridge between View and Model should be controller. That brings a problem: assume that we have a web application
whose layout uses jsp which imitate a framed web page by using multiple page inclusions.
Every included page has some dynamic behaviour; normally, this would be a good place to apply Helper classes for each included jsp, however it seems to break MVC reccomendations.
Did I misunderstood MVC and Helper classes methodology?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets not be too doctrinaire! MVC doesn't mean there has to be only one Java class for each function. Seems to me that "helper" classes can be part of any function. Furthermore, I can't agree with
According to Model-View-Controller architecture, the only bridge between View and Model should be controller.

Views present a view of a Model so they talk directly with a model, not through a controller.
Bill
 
Po-yu Chien
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for such immediate response :-)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!