RE: Forwarding from one Context to another

2009-03-30 Thread Caldarale, Charles R
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

RE: Forwarding from one Context to another

2009-03-30 Thread behofmann
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

Forwarding from one Context to another

2009-03-29 Thread behofmann
In Tomcat 6.0.18, isn't it possible to forward a request/response from one Context to another? Is there some special method/code to accomplish this? Thanks, Brandon -- View this message in context: http://www.nabble.com/Forwarding-from-one-Context-to-another-tp22767662p22767662.html Sent

Re: Forwarding from one Context to another

2009-03-29 Thread Gregor Schneider
Brandon, within the Context-definition of the COntext *from* where you want to forward, you'll have to specify Context path=[Pfad] crossContext=true ... / Forwarding works like this: ServletContext otherContext = servletContext.getContext(/othercontext); // The context may be null if the

Re: Forwarding from one Context to another

2009-03-29 Thread Gregor Schneider
Brandon, please reply to the list so that other ppl also benefit from this. On Sun, Mar 29, 2009 at 3:22 PM, behofm...@gmail.com wrote: Thanks for the quick reply! After using the approach you mentioned, I would then use the RequestDispatcher to complete the forward to the new context.

Re: Forwarding from one Context to another

2009-03-29 Thread behofmann
in context: http://www.nabble.com/Forwarding-from-one-Context-to-another-tp22767662p22771112.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: Forwarding from one Context to another

2009-03-29 Thread behofmann
to another? Is there some special method/code to accomplish this? Thanks, Brandon -- View this message in context: http://www.nabble.com/Forwarding-from-one-Context-to-another-tp22767662p22774166.html Sent from the Tomcat - User mailing list archive at Nabble.com

RE: Forwarding from one Context to another

2009-03-29 Thread Caldarale, Charles R
From: behofmann [mailto:behofm...@gmail.com] Subject: Re: Forwarding from one Context to another When trying to forward my .jsp to another Context in Tomcat 6.0.18 using the following code, I get the following error: ServletContext appContext = ServletContext.getContext( /dev

Re: Forwarding from one Context to another

2009-03-29 Thread Hassan Schroeder
On Sun, Mar 29, 2009 at 4:34 PM, behofmann behofm...@gmail.com wrote: When trying to forward my .jsp to another Context in Tomcat 6.0.18 using the following code, I get the following error:      ServletContext appContext = ServletContext.getContext( /dev ); Try: ServletContext appContext =

RE: Forwarding from one Context to another

2009-03-29 Thread Caldarale, Charles R
From: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] Subject: Re: Forwarding from one Context to another ServletContext appContext = this.getServletConfig().getServletContext().getContext( /dev ); You certainly don't need this in the above; nor is getServletConfig() necessary

Re: Forwarding from one Context to another

2009-03-29 Thread Hassan Schroeder
On Sun, Mar 29, 2009 at 5:52 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: ServletContext appContext = this.getServletConfig().getServletContext().getContext( /dev ); You certainly don't need this in the above; nor is getServletConfig() necessary, if the code is in a class that

Re: Forwarding from one Context to another

2009-03-29 Thread behofmann
in context: http://www.nabble.com/Forwarding-from-one-Context-to-another-tp22767662p22775380.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org