Try /www/WEB-INF/classes/db.properties if you are trying to use the
ClassLoader.getResource("db.properties").

        Randy

-----Original Message-----
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 07, 2001 4:42 PM
To: [EMAIL PROTECTED]
Subject: *.properties files


Hi, I've been having problem to use *.properties files.
I'm running Slackware 7.1 (Linux), Tomcat 3.x, JDK 1.2.2, Apache 1.3.12
/www/index.jsp
/www/db.properties

/www/servlets/test.class
/www/servlets/db.properties

Also tried:
/www/WEB-INF/lib/db.properties
/www/META-INF/db.properties 

Neither of these combinations doesnt work. Tells that it  can't find this 
file.
Where I should keep them? 
Thank you in advise.


>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 2/7/01, 1:34:14 PM, "Craig R. McClanahan" <[EMAIL PROTECTED]> 
wrote regarding Re: Doug McNamara:


> George McKInney wrote:

> >
> > Because WEB-INF/classes is searched before WEB-INF/lib (AFAIK), 
properties
> > files in /classes will override those in /lib jar files.
> >

> This is required in servlet 2.3 (which Tomcat 4.0 implements).  It was
> unspecified in servlet 2.2, so your mileage may vary on different servlet
> containers.

> >
> > George McKinney, Developer
> >

> Craig McClanahan



> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

NOTICE:  This communication may contain confidential or other privileged
information.  If you are not the intended recipient, or believe that you
have received this communication in error, please do not print, copy,
retransmit, disseminate, or otherwise use the information.  Also, please
indicate to the sender that you have received this email in error, and
delete the copy you received.  Any communication that does not relate to
official Columbia business is that of the sender and is neither given nor
endorsed by Columbia.  Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to