Hi Stephiems, Are you using same action class for pay() and save()? If you are using different actions, then have you tried to associate each submit with a form/s:form? Do you have mentioned any action in your current form/s:form?
Since you are not getting an error, it may because of the above problem or a problem similar to that. Thank you. Regards, Kishan.G Senior Software Engineer. www.spansystems.com -----Original Message----- From: Stephiems [mailto:stepha...@trexart.com.au] Sent: Thursday, April 30, 2009 2:06 PM To: user@struts.apache.org Subject: [s2] multiple submit buttons using action and method I'm having a problem with the action and method values on the s:submit tag. I have a form where I have two submits, Save and Pay Now. Save submits to the actions save() method and Pay Now submits to the actions pay() method. In the pay() method I have some of my own validation, if it passes, I forward it on to another action to make a payment, if it doesn't pass, I return it to the screen they were just on and display an error message. When they are directed back to the original page and shown the error message, if they now press the Save submit, they are redirected to the pay() method as if they had pressed the Pay Now button, instead of going to the save() method. I've also had problems with this tag where I've had to name the action and the method, not just the method, or else they don't work correctly either. I think I've possibly found a bug, but I wanted to check to make sure I haven't done anything wrong before reporting it. Cheers, Stephanie -- View this message in context: http://www.nabble.com/-s2--multiple-submit-buttons-using-action-and-meth od-tp23311584p23311584.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org