• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

MVC pattern in Struts

 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having a feeling that MVC pattern in Struts is not the same as traditional MVC, such as MVC in Swing framework. When I come across this article, I realize there is a good name for that MVC - HMVC(Hierarchical-Model-View-Controller). It is just a layed pattern not limiting scope to components.
Am I right? or any comments on this subject.
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HMVC is applying the MVC pattern multiple times within a framework. That doesn't happen in Sruts. The MVC pattern is applied once per request. See my article in the newsletter for a description of the MVC architecture in Struts.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
struts focus on web lay, so his mvc pattern is
in web lay
 
Saloon Keeper
Posts: 25455
178
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
True MVC requires a tighter binding between components than JSP/HTTP can offer. The popular non-Struts adaptation of MVC for those constraints is called Model 2.
The actual mechanism itself is a two-phase dispatching system (controller), with the first phase being in charge of basic model preparation/validation (formbeans) and with the activation of the secondary dispatcher (action processor).
But I find it a lot easier to just say "Struts".
 
Let nothing stop you! Not even this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic