• 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

save button press only once checking- urgent

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could anybody tell me in detail about this?
thanks.
 
Nathan Hook
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
    Bookmark Topic Watch Topic
  • New Topic