No waht I want is I need to append the paramater to the request.
ie if I have /LoginServlet?param1=value1
I need to be able to do
/LoginServlet?param1=value1&param2=value2
If I say setParameter(), it puts the value in the session not in the
request, they way I want it to be.
I should be able to do getParameter() on param2, as if it came from the
request.
Thanks



>From: Geeta Ramani <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: adding a new parameter to request?
>Date: Fri, 23 Mar 2001 11:40:02 -0500
>
>Jai:
>
>Are you saying that a (subsequent) call to getAtribute("command") is
>returning
>null?
>
>Geeta
>
>jai _ wrote:
>
> > I am forwarding a request to another servlet using,
> > RequestDispatcher.forward()
> > method. But before I do that, I need to add one more parameter to the
> > request....
> >
> > ServletContext sContext = getServletContext();
> > request.setAttribute("command","LOGIN");
> >
> > RequestDispatcher  reqDispatcher =
> > sContext.getRequestDispatcher("webapp/Provider/CommandServlet");
> >
> > if(reqDispatcher!=null )
> > reqDispatcher.forward(request, response);
> >
> > But my newly added attribute to the request is not getting passed.
> > Is there any other way to do it?
> >
> > Thanks, I appriciate your help.
> >
> >
>_________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at
>http://www.hotmail.com.
> >
> >
>___________________________________________________________________________
> > 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

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

___________________________________________________________________________
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