Hello,
What CommandServlet prints if you do a:
out.println(request.getAttribute("command"));
?
Cheers,
Kare
On Fri, 23 Mar 2001, jai _ wrote:
> Date: Fri, 23 Mar 2001 15:47:19 -0000
> From: jai _ <[EMAIL PROTECTED]>
> Reply-To: A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology. <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: adding a new parameter to request?
>
> 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
>
--
Kare Nuorteva
http://www.kare.uklinux.net/
___________________________________________________________________________
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