This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.


<b>L G Goundalkar</b><br /> <a href="mailto:lggoundalkar@yahoo.com" rel="nofollow">lggoundalkar@yahoo.com</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
HIH
Regards
Vishal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Submit button
 
Similar Threads
GUI
opening a frame right beneath the calling button
reduce gap between image and button
actionPerformed to close dialog
Java Script to clear text box