title: How do I read a .properties file without calling its absolute path
body: <p>I have my .properties file in </p>
  
  <pre><code>com.someOtherpage
   -somefolder
    --theProperties.java  `&lt;--- This guy needs it`
  com.somepackage
  WEB-INF
   -config
    --project.properties  `&lt;--- Here is where he sits`
  </code></pre>
  
  <p>when deployed how can I call the properties file with out calling its absolute path like below</p>
  
  <pre><code>public class theProperties
  {
    private static Properties properties = new Properties();
  
    public theProperties()
    {
    }
  
    public String get(String attribute) throws Exception
    {
       //what do I need to set up to be able to call this file this way 
       //notice there is no '../../project.properties'
       //                    -----
      InputStream is = theProperties.class.getResourceAsStream("project.properties");
      properties.load(is);
  
      is.close();
  
      return properties.getProperty(attribute);
    }
  }
  </code></pre>
  
  <p><strong>The above isn't working, why?</strong></p>