This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes Oh no... i'm doomed... 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 » Servlets
Bookmark "Oh no... i Watch "Oh no... i New topic
Author

Oh no... i'm doomed...

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
hey man, i need help just like michael...
well, you see i have a onClick function that would be the Javascript hook to call a java function... the problem is, as i have learned reading other problems here.
now my question is, how will you call a java function in a jsp in a input type button?
-=[vince]=-
vaibhav punekar
Ranch Hand

Joined: Jan 20, 2001
Posts: 134
If you have only one button in yout form why don't you use input type "submit" and give action to your <form>tag.
<form name="" action="../../sth">
<input type=submit name="">.
If you have multiple buttons in the form you better use <img src="">tag.And give the path for the image that resembles your button.Is it ok?


VAIBHAV <BR>SCJP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Oh no... i'm doomed...
 
Similar Threads
Java Objects and JNI
Calling a Servlet (Urgent)
How to call Javascript function from an Application.
How to add items in the dropdown list dynamically on radio button selection
Call a javascript function from a JSP