This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Oh no... i Watch "Oh no... i New topic

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

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?
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?

I agree. Here's the link:
subject: Oh no... i'm doomed...
Similar Threads
Call a javascript function from a JSP
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