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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep
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.
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".
Sometimes the only way things ever got fixed is because people became uncomfortable.
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