File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.

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
I agree. Here's the link:
subject: Submit button
It's not a secret anymore!