Try using an Initialization Argument. You can retrieve them either straight
from the ServletContext passed in the init() method or (if you properly call
super.init(config)) from the getServletConfig() method.
(*Chris*)
----- Original Message -----
From: Bradley Unwin <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 30, 1999 3:35 PM
Subject: Environment Variables in Servlet
> Hi,
>
> 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().
>
> Any ideas?
>
> Thanks,
>
> Brad.
>
>
___________________________________________________________________________
> 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
>
___________________________________________________________________________
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