Thanks for the prompt reply. In regards to the javascript option, I've actually created 2 forms, so that now the action is set to "DownloadSearch" for the "Download" button and with that I've created a respective Action and ActionForm. Which is mapped in the struts-config.xml file. But when I run my application and click on the "Download" button, which should go to "DownloadSearch" action, I get the following error:

Error 404: No target servlet configured for uri:/DownloadSearch

Any ideas why this is coming up?

As for the use LookupDispatchAction, like I mentioned before, MappingDispatchAction is extended in a base class that we all must use for the project that we are working on. To have another base class created to extend LookupDispatchAction and configured doesn't look like a viable option for me.

Thanks again.

Ruepen

Samere, Adam J wrote:
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]

Reply via email to