If I understand You corectlly You have one form
and in the Servlet You want to decide wich submit button
was pressed. (like Previous or Next).
If You have in your html form:
<input type="submit" name="submitbuton" value="Previous">
<input type="submit" name="submitbuton" value="Next">
than in Your servlet get the parameter submitbuton. Like this:
String buton=request.getParameterValues("submitbuton")[0];
or request.getParameter("submitbuton");
than
if( buton.equals("Previous") ) {
file://something
}
else {
file://something else
}
Hope it helps.
Andras.
----- Original Message -----
From: Meng, Dong J (CAP, CDI) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 17, 1999 7:19 PM
Subject: how to handle mutiple submit button on one form ?
> 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
___________________________________________________________________________
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