File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 63869

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

[Asking smart questions] [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!