I am familiar with the basics of MVC and using Struts as the presentation layer. I'm having difficulty applying OOP principles to my project to implement an extensible, maintainable design.
I am trying to design a system that receives applications of various types and stores the info in a db. There are elements of each application that are similar, which lends itself to a base-derived structure for the ActionForms(?). Of course, I'd need to go to different jsp pages to collect different information based on the type of application that is being processed.
Does anyone have any tips on books/websites/examples that would be an aid for this type of problem?
An excellent free resource called "Struts Survival Guide" by Srikanth Shenoy has just been made available for download at http://www.objectsource.com.
If you have a number of forms that are similar with minor variations, I'd suggest writing an ActionForm containing common elements to all the forms, and then making your individual ActionForms subclasses of this form, rather than ActionForm.
Thanks for the reply. I will check out the website that you suggest.
As to the base ActionForm, I'm more concerned with programming my Action classes so that I'm not always using this construct:
and so on. All of these application types will gather information in similar ways but will contain different elements. Each application subtype will be implementing abstract methods such as validate(), save(), etc.
I have a similar problem.Maybe you guys could help.Since cross posting/multiple posting is prohibited ,kindly visit this link for my case My Action Form Design issue. Can you kindly take a look and suggest some solution to tackle this situation.