> 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.