views:

525

answers:

1

Hi there.

I'm running Java web app using tomcat and I want to read a properties file that's located in my WEB-INF folder. How can I get an InputSteam to this properties file so I can read it?

+2  A: 

ServletContext.getResource/getResourceAsStream, IIRC.

Tom Hawtin - tackline
I want to know the path on the server's file-system to the resource - can you tell me how to find this out?
Tim Cooper