aspose file tools*
The moose likes Struts and the fly likes Design Patterns  in structs  frame work. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Design Patterns  in structs  frame work." Watch "Design Patterns  in structs  frame work." New topic
Author

Design Patterns in structs frame work.

Praveen Kumar
Ranch Hand

Joined: Nov 06, 2006
Posts: 133
Could any one explain / give a link to know what are the design patterns used
in struts frame work ?
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

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!
Praveen Kumar
Ranch Hand

Joined: Nov 06, 2006
Posts: 133
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 ?
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

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?
Sidharth Pallai
Ranch Hand

Joined: Apr 21, 2008
Posts: 134

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.


Thanks & Regards
Sidharth Pallai
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Design Patterns in structs frame work.