Hi,
   I got a servlet and it will call another class.  In that class I need to read a properties file.  But i don't know where to put my properties file, I try to put anywhere, but still got file not found error.  So what method i can use to know the current path of that
class will reading?
 
for example,
The servlet testDB is in directory
     WEB-INF /com/iss/npd/servlets
And the class file dbConnect is in directory
    WEB-INF/com/iss/npd/database
 
The dbConnect will  read the database.properties file, anyone can tell me where I can put this file?
 
In JMC, Servlet Definitions I give this Name=testDB, Class Name = com.iss.npd.servlets.testDB
then in Servlet URL Mappings, I give the Virtual Path/Extension = /testDB, Servlet Invoked = testDB
 
 
Thanks
 
 
 
Louis

Reply via email to