Struts1.0 follows MVC architecture and Struts 1.1 follows MVC2 architecture which is designed using Front Controller Design Pattern .. The Struts Action classes and their associated action mappings are like the Command pattern. Also, the Form Beans that encapsulate the values entered on a form, these are like a Context Object. The explanation for each of these patterns can be easily found on the net by doing a google. I hope this helps!
Joined: Nov 06, 2006
Hi Raj Kamal,
Thanks for info. We are using ActionMapping to forward the flow to the View after performing some business logic from the action class.
Here , structs using Dispatcer View to the above one ?
Not so certain why its called a pattern? Basically the dispatcher view is just what the name suggests, a dispatch to the view to put it in simple words. What kind of design logic is involved to call it a pattern? Maybe one of the bartenders could shed some light on this, please?
Although struts follows front-controller design,it incorporates an enhanced version of MVC/Model-2 architecture what we call as MVC-CC ie MVC-Configurable Controller.Struts doesn't restrict any design limitations,rather it provides extensibility of implementing any pattern along with it.Controller components and collaborating classes can be customized to meet desired results.