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 JSP and the fly likes problem with submit button 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 » Java » JSP
Bookmark "problem with submit button" Watch "problem with submit button" New topic

problem with submit button

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

hi all,

i have some problem with submit button...the thing is that i want control hitting the submit button two times.

please tell some ideas

thanks & regards,

dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
Hi thr

Could you please ellaborate and explain
about your problem on submit button
what actualy you are intending to controll
by hitting the submit button two times
and where you are getting stucked.
It will be a bit easier to help.

Dhwani:>Winning is not important but it is the only thing.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The simplest thing to do is disable the button using Javascript when it it clicked.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
This is not the right solution i think.
You should read this topic if you want to know about this problem in detail:

Consider Paul's rocket mass heater.
subject: problem with submit button
Similar Threads
HTML +Javascript submit query??
h:commandButton type
How to stop the onclick function running when onsubmit validation fail
How to validates fields before submit?
disable the submit button after clicking