Shapira, Yoav wrote:

Howdy,
I agree with under WEB-INF as that's a directory the servlet container
will protect for you.


I don't like to put configuration information on the classpath however.
I prefer to access them via other mechanisms, such as the
ServletContext. So I would create a directory called config under
WEB-INF, put the file (say a.props) there, and access it via InputStream is =
ServletContext.getResourceAsStream("/WEB-INF/config/a.props");


Yoav Shapira
Millennium ChemInformatics



Good options all. I was leaning towards /WEB-INF/. I like Yoav's suggestion for the more pure organizational aspect. However, could one also just:

InputStream is = ServletContext.getResourceAsStream( "/WEB-INF/a.props"); ?

Tim



-----Original Message-----
From: Raible, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 9:02 AM
To: 'Tomcat Users List'
Subject: RE: placement of properties files

I'd recommend WEB-INF/classes - then it's in the classpath.

-----Original Message-----
From: Schwartz, David (CHR) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 6:57 AM
To: 'Tomcat Users List'
Subject: RE: placement of properties files


I think web-inf folder - since tomcat wont serve files contained


Q: where is the proper place for [props].properties files? such as
something that might store username and password pairs. Not the best
practice, but if one wanted to.






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



Reply via email to