----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hello All,
I'm using Apache 1.3.12 on RedHat 6.2, with jserv 1.1.2 and java 1.2.2.
I need to be able to access a system environment variable from within a
java servlet. Since the getenv() method is deprecated in Java 2, I
decided to pass it in as a property. The problem is that I can't figure
out the magical incarnation to pass the *value* on the variable, and not
simply the *name*.
In my jserv.properties, I set the 'wrapper.bin.parameters' line to:
wrapper.bin.properties=-Ddazel.dazelns=$DAZELNS
but when I call getProperty() in the servlet, I get the value "$DAZELNS"
instead of what I expect (the value of $DAZELNS). Obviously, it's not
expanding the value of the environment variable. So, any suggestions?
I can use the deprecated getenv() method, but I'd prefer not to if
possible.
I read the FAQ (at least, the old, working version of the FAQ), and was
unable to find a solution.
Thanks,
- Bill
P.S. I've never seen the 'new, improved' FAQ working, so I just
referred to the old FAQ, which does not seem to cover jserv 1.1
specifically.
--
<>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <><
Bill Woodward ([EMAIL PROTECTED] or [EMAIL PROTECTED])
http://members.xoom.com/Bill_CCHKK
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]