Announcement Announcement Module
Collapse
No announcement yet.
Double form submission in SimpleFormController Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Coffeejoy

  • #2
    Just override the handleInvalidSubmit method of AbstractFormController (which SimpleFormController extends). See Spring javadocs for details

    Comment

    Working...
    X