What is the best way of handling
struts forms with multiple submit buttons. For a long time, to give the user the opportunity to change their minds, I've been building forms along the lines of
and this has always worked fine. Until today when I needed a quick way to prevent double submits on a particular from. So I added an onsubmit handler to the form to disable the "Continue" button after the first click. That part worked, but the action="processForm" never got called. When I looked at the POSTs in Firebug with and without the onsubmit handler I saw;
The action parameters have been dropped from the submission. In this case, Struts simply re-displayed the form to me.
Have I been doing things the wrong way all this time and how do I modify the form to get out of this particular problem?
Regards