e hënë, 18 qershor 2007

How to handle multiple submit by user?

For multiple submit
---------------------------
1) disable the submit button,
- once the request has been submitted or started processing, user cant submit it again.

2) generate a token, when data gets committed.
- Once data is committed or token is generated, the user cant resubmit the page or the request wont be fulfilled.

3) generate a token when request processing gets started, so that user cant resubmit.
- if the commit fails, user can go to last successful page and get ActionForm, and process the request and go forward.

Nuk ka komente: