Hi Victor, If you have both <html:hidden property="method"/> and buttons in the same form, both method are submitted when you pressed either button. You could change the value with javascript code before submitting the form. Something like this might work :
<html:hidden property="method" value="save"/> <html:submit> <bean:messagekey="button.save"/> </html:submit> <html:submit onclick="document.formName.method.value='delete'"> <bean:message key="button.delete"/> </html:submit> -----Original Message----- From: victor gusz [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 13:33 To: [EMAIL PROTECTED] Subject: newbie question: how to handle two dispatchAction methods in a jsp page? Hi, guys: I have two methods in a DispatchAction class: save, delete and I have two buttons in a jsp page: save, delete. In order to successfully save and then forward to another page, I can do the following: <html:submit><bean:message key="button.save"/></html:submit> <html:hidden property="method" value="save"/> This works fine. But if I add code related with delete method just following the above code: <html:submit><bean:message key="button.delete"/></html:submit> <html:hidden property="method" value="delete"/> Everything fails. I am wondering how I can handle multiple DispatchAction methods in a jsp page? regards, __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- 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]