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
JavaRanch » Java Forums » Java » JSP
Bookmark "Submit button" Watch "Submit button" New topic
Author

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"
Sheriff

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
Hi,
whats your FORM tag. Can you give what you have used.
action = "javascript:myfunction()" and
<script language="javascript">
function myFunction() {....
}
</script>
Should work fine.
Cheers.


SCJP, SCWCD
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
HIH
Regards
Vishal
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Submit button