I think RequestDispatcher will server your purpose.
use request.setAttribute() for sending form values to second servlet.

bye
Rao


----- Original Message -----
From: "Elaine Chong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 6:57 AM
Subject: Adding parameters when forwarding requests


> I have a servlet (Servlet #2) that handles POST requests from a form and
> enters the form data into a database.  I am currently having the form
point
> to another servlet first (servlet #1), which performs some checks, and
then
> forwards the request to servlet #2 to enter the data into the database.
Is
> there a way for me to have servlet #1 add parameters onto the request so
> that servlet #2 simply accepts them as additional form data?
>
> Any ideas or help would be appreciated.
> Thanks.
>
>
___________________________________________________________________________
> 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

Reply via email to