I use jboss3.2.1 with tomcat 4.1.24
I have an web application that is a .war. I put this file in the deploy directory and then I can access my web app.
But inside my .war, I have a property file that I want to read some informations, but I cannot. My question is
How can I read this file in my .war ?
Something like so will work:
InputStream is = this.getClassLoader().getResourceAsStream("foo.properties"); Properties props = new Properties(); props.load(is);