Is there a way to figure out the context path from a given ServletContext? I'm inside
one context and am trying to dispatch to a resource in another context based upon the
absolute URI (in other words, a uri relative to the server root).
I can get the proper servlet context as follows:
Is getContextPath() possibly what you're looking for? It's found in the
HttpServletRequest interface.
At 07:23 PM 1/8/2002 +0100, you wrote:
Is there a way to figure out the context path from a given ServletContext?
I'm inside one context and am trying to dispatch to a resource in another
somewhere within the new context.
Thanks!
-Richard
- Original Message -
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2002 7:33 PM
Subject: Re: howto get the context path from a ServletContext?
Is getContextPath() possibly what you're
, January 08, 2002 7:43 PM
Subject: Re: howto get the context path from a ServletContext?
No because I don't have a Request. In other words, the request object I
have is from the current servlet-context, but when I do
nextContext=currentContext.getContext(nexturi), all I have about this
other
On Wed, 9 Jan 2002, Richard Sand wrote:
Date: Wed, 9 Jan 2002 00:33:31 +0100
From: Richard Sand [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: howto get the context path from a ServletContext?
I've concluded
from a ServletContext?
On Wed, 9 Jan 2002, Richard Sand wrote:
Date: Wed, 9 Jan 2002 00:33:31 +0100
From: Richard Sand [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: howto get the context path from a ServletContext