Hi-
My mistake. I deleted the message before I replied and missed that this
needed to take place during startup.
-Terence M. Bandoian
[EMAIL PROTECTED]
>
> Subject:
> Re: ServletContext.getContextPath()
> From:
> Christopher Schultz <[EMAIL PROTECTED]>
> Date:
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Brendan,
Brendan MacLean wrote:
> That's the conclusion I'd come to, but was hoping some Tomcat guru could
> tell me different. Unfortunately, request.getContextPath() is not available
> "before the first request" though this is indeed how we are ini
That's the conclusion I'd come to, but was hoping some Tomcat guru could
tell me different. Unfortunately, request.getContextPath() is not available
"before the first request" though this is indeed how we are initializing our
knowledge of this setting at the moment. Sounds like we'll have to wait
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Terence,
Terence M. Bandoian wrote:
> request.getContextPath()?
During startup? :(
I don't believe you can do this through v2.4 of the the Servlet API,
unfortunately.
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: U
request.getContextPath()?
-Terence M. Bandoian
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
It looks like the method ServletContext.getContextPath() was added in
version 2.5 of the Servlet API (supported by Tomcat 6.0), but was not
present in version 2.4 (supported by Tomcat 5.5). Is there any way to get
this information at webapp load time, i.e. inside a
ServletContextListener.contextIn