Put each button in a separate <form> block.
Alternately, both buttons have the same name but different
values. Then check the value returned in the servlet.
Don Weiss, President
Step 1, Inc.
10551 Barkley, Suite 424
Overland Park, KS 66212
913.383.1965 voice
913.383.3607 fax
888.383.1965 toll free
www.step1inc.com
----- Original Message -----
From: Oksana Kochubey <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 13, 1999 1:16 PM
Subject: Servlets and HTML forms
> Hi everyone,
>
> I have a question. I have two submit buttons on my HTML form which need to
> envoke two different servlets. How can I write two <form action .. >
> statements in my HTML to differentiate between two actions?
>
> <form action="/servlet/ServletName" method="post"> // ????
>
> <td WIDTH=10% align=right><input type="submit" taborder="24" tabindex="24"
> title="CONTINUE" name="CONTINUE" value="CONTINUE"></td>
>
> <td WIDTH=10% align=left><input type="submit" taborder="24" tabindex="24"
> title="FINISH" name="FINISH" value="FINISH"></td>
>
>
>
> Thanks,
>
> Oksana
>
>
___________________________________________________________________________
> 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
___________________________________________________________________________
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