title: Path to a file in a webapp under GlassFish
body: <p>How do I specify the path to a file in a web application? I have a folder named 'templates' under WEB-INF, I've been told that under GlassFish v3 the path should look like this:</p>
  
  <pre><code>./WebContent/WEB-INF/templates
  </code></pre>
  
  <p>but this way I'm getting a file not found exception. What do I have to change in order to make it work?</p>