|
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
|
- [JRun-Talk] Re: how to get the current path? Louis
- [JRun-Talk] Re: how to get the current path? Doug Turner
- Re: how to get the current path? Ajay V Mahajan
