Chuck,

I made some modifications to my relative paths and everything is now
working.  Thanks again for your help.

Brandon


Caldarale, Charles R wrote:
> 
>> From: behofmann [mailto:behofm...@gmail.com]
>> Subject: Re: Forwarding from one Context to another
>> 
>> The complete path should be /dev/jsp/index.jsp.  Correct?
> 
> I believe so.
> 
>> Unfortunately, I get a blank page in my browser and the page properties
>> show /filter/jsp/index.jsp which is the original <Context> path.
> 
> Remember that the client (browser) is not involved in a forward (it would
> participate in a redirect).  You likely have something else going on in
> /dev/jsp/index.jsp using relative URLs.  Since the last URL the browser
> was aware of was for the /filter webapp, any relative links passed to the
> browser will be evaluated based on that, not /dev.
> 
>> If I change the following to:
>> 
>> RequestDispatcher rd = appContext.getRequestDispatcher(
>> "/dev/jsp/index.jsp"
>> );
> 
> That's definitely wrong, since the argument to getRequestDispatcher() is
> relative to the ServletContext it's called with.
> 
>> the browser trys to render /dev/dev/jsp/index.jsp.
> 
> Which is what I would expect.  In this case, it's clear you did get the
> proper ServletContext for the /dev webapp.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Forwarding-from-one-Context-to-another-tp22767662p22789363.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to