U can do this in jsp though . something like
<jsp:forward name="nextScreen">
<param name="someParam" value="someValue" />
</jsp:forward>
else. I agree about u r view in case of servlets
----- Original Message -----
From: Sam Newman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 10:32 AM
Subject: Re: Adding parameters when forwarding requests
> I wanted to do something similar, and came to the conclusion thayt you
> cannot add parameters to a post using the standard redirection. If you
have
> full control over servlet #2 however, you could simply store the extra
> fields in an attribute and then forward the page from servlet #1 to
servlet
> #2....
>
> sam
> ----- Original Message -----
> From: "Elaine Chong" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 19, 2001 2:27 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
___________________________________________________________________________
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