Results 1 to 2 of 2

Thread: Double form submission in SimpleFormController

  1. #1
    Join Date
    Aug 2008
    Posts
    16

    Default 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. #2
    Join Date
    Nov 2005
    Posts
    114

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •