This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes How to handle multiple submmisions simultaniously in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to handle multiple submmisions simultaniously in Struts" Watch "How to handle multiple submmisions simultaniously in Struts" New topic
Author

How to handle multiple submmisions simultaniously in Struts

Pavan Naidu
Greenhorn

Joined: Jun 10, 2008
Posts: 2
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

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 ]

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
stef li
Greenhorn

Joined: Jan 16, 2006
Posts: 27
yes,u can use token to forbid user to submitting twice.


This guy is so lazy!!!<br />There is nothing left!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to handle multiple submmisions simultaniously in Struts
 
Similar Threads
How to program an OK/Cancel box in JavaScript?
reset button in struts
Beta Part II submission acknowledgement
How can i redirect from jsf action to my own servlet ?
"enter key" button focus ?