Sep 14th, 2008, 05:12 AM
Double form submission in SimpleFormController
I'm using Spring' SimpleFormController.
Can anyone suggest how to prevent user from submitting forms more than once? i.e. pressing F5 on the browser to resubmit the form should be rejected with an message to user indicating they cannot submit the form twice.
My thoughts is that it SimpleFormController should take care of this. Can anyone shed some ideas?
Thanks in advance
Sep 15th, 2008, 03:00 AM
Just override the handleInvalidSubmit method of AbstractFormController (which SimpleFormController extends). See Spring javadocs for details