tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: SOLVED: How to get the context path for a web application?
Date Fri, 13 Aug 2004 13:12:41 GMT
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,
complete with a build file).

Yoav Shapira
Millennium Research Informatics

>-----Original Message-----
>From: Endre StĂžlsvik []
>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!
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message