Hi, And of course, since you can get the source for JSR154, there's nothing preventing you from adding this method and running with a custom servlet jar in your container. (It's at http://cvs.apache.org/viewcvs.cgi/jakarta-servletapi-5/jsr154/, complete with a build file).
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Endre Stølsvik [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 5:27 AM >To: Tomcat Users List >Subject: Re: SOLVED: How to get the context path for a web application? > >On Thu, 12 Aug 2004, Jacob Kjome wrote: > >| To get the context path at init time, try this.... > >Thanks..! Good to see that others (log4j!!) have this problem! > However, I have been thinking along these lines (the second idea >presented) already, but it then again boils down to that you really cannot >assume anything about what environment you're within. See, typically in >the development environements we use, the dirname of the webapp have >nothing in common with the "mount name" (you specify that in the tomcat >server config file, or these other "xml-snippets" outside of the file) - >thus I'm back to the starting point: no knowledge! > >If only the SerlvetContext object would be so nice as to have a simple >method getContextPath(), we'd all be happy! > >Endre > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]