Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design Patterns in structs frame work.

 
Praveen Kumar
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could any one explain / give a link to know what are the design patterns used
in struts frame work ?
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 134
Hibernate Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic