At 09:55 AM 5/11/99 -0700, you wrote:
>If you have...
> Properties myprops = new Properties();
> FileInputStream instream = new FileInputStream("xxx.properties");
> myprops.load(instream);
>
>where should xxx.properties live? what is considered to be the working
>directory for the JVM?
>
>- Greg
Safest way to handle stuff like this is have the full path be an initial
parameter to the servlet. Say you have a zone called "foo" (aren't they
all?) containing a servlet class Bar.class. Then in foo.properties:
repositories=C:\path\to\directory\containing\barclass
servlet.Foo.initArgs=configFile=X:\path\to\servlet\config\file\foo.cfg
Then foo.cfg can be a Properties-parsable file containing something
like:
imageDir=C:\images
---
Michael Stacey
Lexi-Comp, Inc.
1100 Terex Road
Hudson OH 44236
(330) 650-6506
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]