Correct me if I am wrong....

Try Using...
RequestDispatcher objReqDispatcher = getServletContext().getRequestDispatcher(strURL);

instead of what u r using ...

RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress);
( in this case all the paths are relative to the calling servlets path.. look into 
this ..u may find something helpful..)

Regards,
Basu.


----- Original Message ----- 
From: "Teja Jo" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 19, 2003 9:47 AM
Subject: RE: Further details - RequestDispatcher in servlet is not working


> Hello,
>  
> It is the doGet method of servlet - what will it return after the forward call- its 
> return type is void.Here after the forward call when I had given a log message - 
> that message got logged (the RequestDispatcher object got is not null was proved 
> since I printed that object address) - but the result of forwarded  url page did not 
> reach the browser.The browser remained at the first page - which had begun the 
> request procedure to the servlet.
>  
> Regards and thanks,
> Teja.
>  
> 
> 
> "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Howdy,
> 
> >
> > //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.
> 
> What happens, then?
> 
> Don't forget to return from your method above after the .forward call.
> 
> Yoav Shapira
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged. 
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else. If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender. Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now

Reply via email to