Hello, let me start off by saying I am using a somewhat antiquated version of
STRUTS (1.2.9). I have a seemingly simple problem but the use of actions and forms is making this much more difficult.
What I have is a system to enter warranty claims, as everyone knows - warranty claims have a lot of data - and many times that data is repeatable. To help curb this we are giving our users the ability to save and utilize templates.
What our original plan was to create a claim entry
JSP file and then reuse it - it is this reuse of the JSP that is causing pain. We have a form bean for claim entry that gets sent to the claim entry action and this works fine. Now we are working on this template piece - so we have a manage templates JSP that displays to the user all of their templates, a form bean for storing all these templates and other things to be displayed on the screen, and finally a manage templates action. The user first comes into Manage Templates and a manage templates bean is created and sent to the manage templates JSP . Then the user clicks on a button to create a new template, we send them over to the claim entry JSP with a claim entry bean - the user fills out the claim entry form and then saves their template (here comes the rub). This sends all of that claim data in its claim entry bean over to the manage templates action... whoa put on the brakes I cannot submit more than one bean type to any given action, so I am stuck!
My initial thought is to have the manage templates form extend the claim entry form - allowing it to still work on the claim entry JSP and work for my purposes on the manage templates all in one. Does anyone else have a better approach?
Thanks!