Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
save button press only once checking- urgent
Liz Brown
Ranch Hand
Posts: 112
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If i have a page which submits a button called save and saves to database.
I want to know how to prevent the submission after that saving, if user keeps on clicking on submit.
Nathan Hook
Ranch Hand
Posts: 81
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I believe there is something call a 'token
pattern
' that stops this behaviour of some over-zelous users.
Best of Luck,
Nate
Liz Brown
Ranch Hand
Posts: 112
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Could anybody tell me in detail about this?
thanks.
Nathan Hook
Ranch Hand
Posts: 81
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Google is your friend...
http://www.google.com/search?hl=en&q=%22token+pattern%22&btnG=Google+Search
or...
http://www.javaworld.com/javaworld/javatips/jw-javatip136.html
Just that simple...click, click click...
Cheers,
Nate
Jason Menard
Sheriff
Posts: 6450
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You might also check the following located in our JavaRanch FAQ Wiki:
How To Prevent Multiple Form Submits
.
This is based on the following post of Junilu's in this forum:
https://coderanch.com/t/48839/Struts/Preventing-multiple-posts
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How do you get the JButton name
save JSP page report a text file
Servlet to Backing bean
saving a html file as word document on click of a button
Back end validation problem .
More...