Re: ServletContext.getContextPath()

2007-10-04 Thread Terence M. Bandoian
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: >

Re: ServletContext.getContextPath()

2007-10-04 Thread Christopher Schultz
-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

Re: ServletContext.getContextPath()

2007-10-04 Thread Brendan MacLean
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

Re: ServletContext.getContextPath()

2007-10-04 Thread Christopher Schultz
-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

Re: ServletContext.getContextPath()

2007-10-04 Thread Terence M. Bandoian
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]

Re: ServletContext.getContextPath()

2007-10-03 Thread Brendan MacLean
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