Try this:

<Input type=button value="submit1"
onClick='document.form.action=/servlet/Here1;document.form.submit();'>
<Input type=button value="submit2"
onClick='document.form.action=/servlet/Here2;document.form.submit();'>
<Input type=button value="submit3"
onClick='document.form.action=/servlet/Here3;document.form.submit();'>

Hope this helps;

Sid Vicious :)


"Meng, Dong J (CAP, CDI)" wrote:

> Hi:
>
> I have one HTML form with mutiple buttons in a servlet class. If I click
> different button, it will go to different servlet page.
> How do the servlet know which button have been clicked? Do you have similar
> code for this question?
>
> Thanks in advance.
>
> DJ
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
begin:vcard
n:DiBenedetto;Sid
tel;fax:(416) 943-4725
tel;home:(416) 743-6145
tel;work:(416) 943-4999 x29
x-mozilla-html:TRUE
url:www.watco.ca
org:Watco: The E-Business People;Development
version:2.1
email;internet:[EMAIL PROTECTED]
title:Java Wizard
adr;quoted-printable:;;372 Bay Street, Suite 2100=0D=0A;Toronto;Ontario;M5H 2W9;Canada
note;quoted-printable:This world has warped my fragile little mind. !!!=0D=0A
fn:Sid DiBenedetto
end:vcard

Reply via email to