This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes more than one click on a button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

more than one click on a button

Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456

How we can handle the following suitation
If a user clicks on a button more than once but we need to handle it onece.

@ben - i guess this topic was moved too fast.

"use javascript to disable" is probably not the best of all solutions, as the user might have deactivated javascript of might use a media which has no javascript support.

one more sophisticating technique would be to create a unique id, submit it as a hidden field and ensure that each id is processed only once (or never ;-))

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63351

Please post replies in the original topic. Since this has been moved to the HTML forum, you should post there.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: more than one click on a button
It's not a secret anymore!