I had a similar situation and I used only one form, with the bottom part(result) inside a div, which is only visible depending on the action you took on the top part(search param part), otherwise it's invisible. It worked for me, even though it might not be the best solution.
Thanks, -----Original Message----- From: Andrew Tomaka [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 12:00 PM To: Struts Users Mailing List Subject: Re: Two Forms, Two Form Beans, One JSP I imagine I've over complicated the problem, so I've taken a step back and am looking at it from the beginning again. The following are my basic requirements: When the user makes the first request, they are taken to a page with a drop down menu. This drop down menu is built from information stored in a database so I need to do some pre-processing. After that, the user chooses an option from the drop down menu and chooses to search. This returns a page that has the same form that was built in the first request on top and then a second form that lists the results of their drop down. This allows users to choose which of the results to edit. At this point the user can either use the drop down menu and have the bottom list rebuilt or choose a result to edit and proceed. My problem is that I have a "PreAction" to do the processing on the form. This requires the page to have the form bean assigned to it. Since I have two different forms doing two different things, I should have two different form beans, but I don't see how I can accomplish that. This is going to be a common thing to do throughout my entire application so I am hoping a simple design solution will pop up. Let me know if you need any other clarifications. I appreciate the help so far! ~ Andrew Tomaka On 7/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Andrew Tomaka wrote the following on 7/7/2005 10:26 AM: > > > I'm attempting to create a JSP that is made up of two forms. Each > > form needs a different form bean and is processed by a different > > action. The catch is that the first form returns back to the JSP and > > the action responsible for this needs the name attribute set to the > > Form Bean of the first form. When the JSP is loaded after the > > processing of the first form, both the form tags are assigned the name > > of the first Form Bean. > > I'm confused what you are trying to do. Possibly you can describe the > user requirements? > > > -- > Rick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ----------------------------------------- This email transmission and any accompanying attachments may contain CSX privileged and confidential information intended only for the use of the intended addressee. Any dissemination, distribution, copying or action taken in reliance on the contents of this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error please immediately delete it and notify sender at the above CSX email address. Sender and CSX accept no liability for any damage caused directly or indirectly by receipt of this email. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]