This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Yes,so how will my action classes behave or rather how should they be managed?
like, lets say I have an action class for creating a project called CreateProjectAction...
Here based on the type selected i need to create project ,For Ex if the user selects XML,the application should do xml related stuff and
I should create a Project element in an XML file in CreateProjectAction and If it's DB i should turn my application in DB mode and insert a project row in projectTable...
How to manage this way? any others inputs would be great help!!! thanks
You could do anything from a simple if else / switch or do something more refined like switch to different strategies of creating a project based on the selected value. You question seems to be about java in general rather than struts