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
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
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
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
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.
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
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
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
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 =
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
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
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
12 matches
Mail list logo