tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Kelley" <>
Subject Re: Apache variables in Tomcat
Date Thu, 20 Jul 2000 07:45:32 GMT
I'm not sure if there's a better solution, but you can always set these
using -D when you fire up Java.

e.g. If you want to be able to see $PATH (or %PATH%), start tomcat
with -DPATH=$PATH.

That way you can query it via System.getProperty("PATH")

That only works if you know the value you want to set when you start Tomcat.
I'm assuming you're talking about PassEnv. e.g. This doesn't work for the
environment variables that CGI prorams get passed to them (e.g.
$REMOTE_USER), although the request object has methods to query these kinds
of things.

     - Ben Kelley.

----- Original Message -----
From: Ravindra Wankar <>
To: <>
Sent: Wednesday, July 19, 2000 5:01 PM
Subject: Apache variables in Tomcat

> Is there a way to get hold of Apache variables (such as Env variables
> set in apache.conf) in Tomcat?

View raw message