How to avoid multiple submissions in struts and what is the use of struts framework?

Showing Answers 1 - 2 of 2 Answers

anirban

  • Mar 7th, 2007
 

Question is why you want to avoid and its context?
Considering the standard scenario in web-apps of impatient users, just teach them some patience...if the application is business critical then you can possibly solve it thus.
1) Create a random value in your server for a request/page.
2) Send it with the request for that page (the action that triggers that view)
3) When the view returns to the next action, fetch that value and check again
4) If same process request, else discard request with mesg: Request already submitted.

Cheers,
Hope it helps!!

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions