You could set the action of the single form using javascript in the onclick event of the download button. LookupDispatchAction may be better suited for what you are trying to do.
Adam -----Original Message----- From: Ruepen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 2:44 PM To: Struts Users Mailing List Subject: Issue with MappingDispatchAction Hello, I am encountering some issues with using the MappingDispatchAction. The situation is that we (developers) are using a base class that extends MappingDispatchAction. Now I have a jsp page that has 2 buttons in it, one is "Search" and the other is "Download". Now the form action for the "Search" button is mapped to, let's say, "SubmitSearch". Which works fine and is mapped correctly in the struts-config.xml file. Now I added another button called "Download" which downloads an item after the search is completed. How would I go about getting the "Download" button to map correctly to the same Action that is handling the "Search"? By the way, the parameter for the "SubmitSearch" is of course "search" in the action mapping of the struts-config.xml file, which corresponds to a method named "search" in the Action that we are using. I added a "download" method where I handle all that's required for the download in the Action. I tried using 2 forms within the same jsp, but it didn't work. I'll keep trying that. Any help or insight is appreciated. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ----------------------------------------- The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Paychex, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]