Why not use getParameter()?

Not sure why you want an environment variable in particular.  If you just
want to pass a parameter to the servlet (like where the message file was
placed on installation) you can (re)generate your *.shtml files to pass the
parameter to the servlet.

From: Bradley Unwin
> On Init() my servlet opens a file and reads a list of Error
> numbers and messages.
>
> Currently this file name is hard coded and I want to retrieve the
> file name via an environemnt variable.  I have noticed that
> getenv() is deprecated, and I wasn't able to find anything in
> getServletContext().

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to