tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: SOLVED: How to get the context path for a web application?
Date Fri, 13 Aug 2004 13:12:41 GMT
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:Endre@Stolsvik.com]
>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: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message