aspose file tools*
The moose likes JSP and the fly likes Submit button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Submit button" Watch "Submit button" New topic

Submit button

Smitha Prasad
Ranch Hand

Joined: Apr 02, 2002
Posts: 41
I have created a JSP with an update button. in the form i have specified the action as onSubmit call a specific function. But it is not executing this. what could be the problem? help!
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Moving to the JSP forum.

"JavaRanch, where the deer and the Certified play" - David O'Meara
L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
whats your FORM tag. Can you give what you have used.
action = "javascript:myfunction()" and
<script language="javascript">
function myFunction() {....
Should work fine.

<b>L G Goundalkar</b><br /> <a href="" rel="nofollow"></a> <br />Sun Certified Programmer for Java 2 Platform.<br />Sun Certified Web Component Developer for J2EE.
vishal avad
Ranch Hand

Joined: Nov 29, 2001
Posts: 45
Hi Smitha
Be sure that update button u r using shouldn't be a of input type="Submit". If it is change it to button also change the name of button other than submit b sure about the code on onclick
It is sorta covered in the JavaRanch Style Guide.
subject: Submit button
Similar Threads
actionPerformed to close dialog
reduce gap between image and button
opening a frame right beneath the calling button
Java Script to clear text box