just use the javascript for this one. in the submit button [for the
first button use a method onClick="execute(this.form)" the javascript goes
here for the first button
[snippet]
<input type=submit value="click here"
onClick="execute(this.form")>
[/snippet]
for the second button have the line onClick="execute1(this.form)"
function execute(f)
{
f.action="http://mymachine:myport/servlet/myservlet"
f.post="POST"
}
function execute1(f)
{
f.action="http://mymachine:myport/servlet/myservlet"
f.post="POST"
}
Hope this works.
Thanks
Srini
#-----------------------------------------------------------------------#
# #
# "ARISE AWAKE and stop not till the GOAL is reached" #
# #
# [EMAIL PROTECTED] #
#-----------------------------------------------------------------------#
On Fri, 13 Aug 1999, Oksana Kochubey wrote:
> 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
Re: Servlets and HTML forms
Srinivasan S (Systems Engineering Group) Fri, 13 Aug 1999 10:22:53 -0700
- JSP (was Re: out.println("..... Mark A. Kolb
- Re: JSP (was Re: out.println... Craig McClanahan
- Servlets and HTML forms Oksana Kochubey
- Re: Servlets and HTM... Balogh Andras
- Re: Servlets and HTM... Andrea Lardicci
- Re: Servlets and HTM... Gargi
- Re: Servlets and HTM... Don Weiss
- Re: Servlets and HTM... Srinivasan S (Systems Engineering Group)
- Re: Servlets and HTM... Olga Penina
- Re: JSP (was Re: out.println... Shad J. Aumann
- Re: JSP (was Re: out.pri... Augusto Sellhorn
