Originally posted by Zak Nixon:
How do I add files to my classpath for the webserver to pick it up?
Step 1. Place your properties file "fileName.properties" under the WEB-INF/classes folder of your web application.
Step 2. From a Java class of the same web application( this class must also be somewhere in WEB-INF/classes ) try the call:
InputStream is = getClass().getResourceAsStream("/fileName.properties");
This MUST work.
PS: Please provide more detailed info about your servlet-engine, if possible.
[ March 09, 2004: Message edited by: Dragos Haiduc ]
[ March 09, 2004: Message edited by: Dragos Haiduc ]