System variables should be available to all of your servlets and other class
files.
{java.home}
{catalina.home}
catalina.home is where tomcat is installed.
Charlie
> -----Original Message-----
> From: Jakarta Tomcat Newsgroup
> [mailto:@Basebeans.comjakarta-tom@basebeans.com]
> Sent: Monday, June 24, 2002 12:55 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Two questions !
>
>
> Subject: Two questions !
> From: "Dan Paraschiv" <paraschiv@raftelecom.net>
> ===
>
>
>
> 1. How do I get from a servlet the path where is installed Tomcat
> (not the path of my web application) ?
>
> The solution could be specific to Tomcat, because I am sure that my
> application it will always run on Tomcat.
>
> 2. It is possible to find out (in Java) the value of a system
> variable like
> %CLASSPATH% or %CATALINA_HOME% ?
>
>
> Thanks and Best regards,
> Dan
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
|