This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
Using more than one forms in a single action in a struts application
posted 8 years ago
In Struts it is only possible to have one ActionForm per action mapping. However, it is possible to have many different action mappings point to the same Action class. In order to make this work, you'd have to have a mechanism in place in your Action Class that would enable you to decide how to cast the ActionForm instance that's passed as a parameter to the execute method. Example: