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:@[EMAIL PROTECTED]]
> Sent: Monday, June 24, 2002 12:55 PM
> To: [EMAIL PROTECTED]
> Subject: Two questions !
>
>
> Subject: Two questions !
> From: "Dan Paraschiv" <[EMAIL PROTECTED]>
>  ===
>
>
>
> 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:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to