Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to handle multiple submmisions simultaniously in Struts

 
Pavan Naidu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Lets take a scenario that I have a jsp inthat i filled some html entries. First time i will click on the sumbit button, with in fraction of seconds i will again clicks on the submit button.. Whenever i will do it on second submition, the data entered in the second submition is the same. then how we will decide it will gives the result for the first submition or second submition?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pavan,
You could add a token to the session so only the first submission goes through and duplicate are ignored. Or you could do the update twice (if they are the same and there are no side effects.) Or do you have a different requirement?
[ June 10, 2008: Message edited by: Jeanne Boyarsky ]
 
stef li
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes,u can use token to forbid user to submitting twice.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic