Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MVC pattern in Struts  RSS feed

 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
struts focus on web lay, so his mvc pattern is
in web lay
 
Bartender
Posts: 19365
86
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!