l-Satz

form resubmission in spring

Posted by: sathyz on: March 25, 2009

we used SimpleFormController for handling forms, in which we had onSuccess mapped to url say, ‘/uploadSuccess’. The problem with this was, after submitting the form the user would be taken to “/uploadSuccess”. if user presses refresh in browser or if the user goes to some page and comes back using the back button the form would be resubmitted. To avoid this, use ‘redirect:/uploadSuccess’.

Tags:

Leave a Reply