It's not a secret anymore!
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
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...
It's not a secret anymore!