Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Further details - RequestDispatcher in servlet is not working

Teja Jo

2003-12-17

Replies:

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 <bpsouther@(protected):

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@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
©2008 junlu.com - Jax Systems, LLC, U.S.A.