> -----Original Message-----
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 07, 2001 10:49 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Doug McNamara
>
>
>
>       There are two ways.
...
>       1.  When you access your resource, use
> ClassLoader.getResourceAsStream() and then use the fully
> qualified class
> name (i.e. org.apache.tomcat.Tomcat), but you will need to
> replace the .
> with / (regardless of platform).  Now your properties files
> can be in the
> same place as your class files.

BTW, "in the same place" means something like "in the same location in a
class path".
There are times when our code is in a jar file under WEB-INF/lib and the
properties file(s) are in the appropriate location under WEB-INF/classes.
This allows the properties to be changed without dealing with the .jar file.

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


George McKinney, Developer
tantalus communications inc.
500-1122 Mainland Street
Vancouver, BC, Canada V6B 5L1
[EMAIL PROTECTED]

Direct  604.726.6753
Main    604.609.0700
Fax     604.609.0705
www.tantalus.com
"When eBusiness experience counts."




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

Reply via email to