Two other possibilities:
- I've seen a post from someone who said they solved the problem by having
some Javascript in the web page that adjusted the form's action parameter on
the fly depending on which form button was selected.
- Rather than having another servlet whose sole job is to redirect the
request, handle that job in one of the existing servlets. Have the form
always submit to one servlet; that servlet either handles the request or
passes is on.

K Mukhar

> ----------
> From:         Joan Friedman -2016 (431)[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent:         Thursday, June 17, 1999 6:21 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Calling difeerent servlets from one HTML
>
> One solution is to put your buttons into different forms. It looks the
> same to the viewer. If you have a lot of
> entered info that goes to whichever servlet is called, you might need to
> use the buttons to set one parameter,
> then have a single servlet called whose sole job is to pass the whole
> thing along to the correct servlet by
> checking that parameter.
>
> Joan
>

___________________________________________________________________________
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

Reply via email to