I place my properties files in the WEB-INF directory and do the following to
find them -

String webInfFolder = getServletContext().getRealPath("/WEB-INF")

-----Original Message-----
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:34 AM
To: tomcat
Subject: Working Directory


I am trying to read a properties file from my servlet.
It always comes back saying file not found. I have
tried placing the file in
classes/web-inf/context-path. Ideally I would like to
lace it in my classes directory- How do I achieve it.
Thanks
Sanjay

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to