I am seeing duplicate form submission issues in spring. Wanted to implement what is already there in Struts, token validator to check for duplicate requests.
In my form currently, when the user submits a form, instead of submitting and redirecting the page, it makes 2 JSON calls for validation and then submits the form, creating scope for duplicate form submission.
I wanted to use tokens to validate each request
Not directly, I think, but:
IMO the post-redirect-get or simple JS disable of submit may be enough, unless you’re explicitly trying to handle back-button issues and your form page is cached.