You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben Souther <bp...@adelphia.net> on 2003/12/18 04:52:20 UTC

Re: RequestDispatcher in servlet is not working

Request dispatcher is working fine for me.

Can you send some code and a description of your environment?



On Wednesday 17 December 2003 10:57 pm, you wrote:
> Hello everyone,
>
> My servlet after processing something from the HttpServletRequest received
> by it - is supposed to forward the request using RequestDispatcher - but it
> is not doing so.(Only when directly forwarded without doing any initial
> processing  with the request - it gets forwarded).Please give a solution
> for this.
>
> Thanks and regards,
> Tejashri.
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Further details - RequestDispatcher in servlet is not working

Posted by Teja Jo <te...@yahoo.com>.
Hello everyone,
 
wrt the need for actual code - I am sending this code which is executed by doGet method of my servlet :
  
   String temp = request.getParameter("abc");
if( temp.equals("xyz"))
{
 //do some processing  ...............
}
 
   //uptil this point it gets executed properly 
    strAddress = "/WEB-INF/internalJsp/ReceiveJsp.jsp";
    RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress);
    objReqDispatcher.forward(request,response);
 
  Here request dispatcher is not working - it doesn't forward the request.
 
Thanks and regards,
 
Tejashri.
Ben Souther <bp...@adelphia.net> wrote:

Request dispatcher is working fine for me.

Can you send some code and a description of your environment?



On Wednesday 17 December 2003 10:57 pm, you wrote:
> Hello everyone,
>
> My servlet after processing something from the HttpServletRequest received
> by it - is supposed to forward the request using RequestDispatcher - but it
> is not doing so.(Only when directly forwarded without doing any initial
> processing with the request - it gets forwarded).Please give a solution
> for this.
>
> Thanks and regards,
> Tejashri.
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now