Some pages will inevitably contain multiple forms. If you use the SimpleFormController from Spring, you will need to override the isFormSubmission method.
By default this controller makes the decision to call the onSubmit method by simply checking the request method. However, if there are multiple forms on the same page and another form posts, your controller needs to understand the post wasn’t for it and it shouldn’t call the onSubmit method.
Overriding the isFormSubmission method allows you to check that the request contains the correct form object. If the form object for the controller isn’t on the request, don’t call onSubmit.
