This content has been marked as final.
Show 2 replies
-
1. Re: How do I read a properties file in WEB-INF?
camel Apr 14, 2004 5:04 AM (in response to frocco)From your servlet, call getServletContext().getResource(), or getResourceAsStream(), or even getResourcePaths(). To get something from WEB-INF the call would be
getServletContext().getResource("/WEB-INF/db.properties");
The leading slash is important, I believe.
Also see this article: http://java.sun.com/developer/EJTechTips/2003/tt0626.html#1 -
2. Re: How do I read a properties file in WEB-INF?
frocco Apr 14, 2004 5:37 AM (in response to frocco)camel, thanks for the help.
I'll try it today at work.
Regards,
Frank