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

Reply via email to