title: How to get handle to a resource within a JSF class?
body: <p>I've put a properties file within <code>src/main/resources</code> in my JSF project.</p>
  
  <p>How do I get a handle to it? I understand that EL doesn't work within a backing bean.</p>
  
  <p><strong>Note:</strong> The file is in <code>src/main/resources</code> - NOT <code>src/main/webapps/resources</code>, so the following doesn't work:</p>
  
  <pre><code>FacesContext context = FacesContext.getCurrentInstance();
  File value = context.getApplication().evaluateExpressionGet(context, "#{resource['resources:email.properties']}", File.class);
  </code></pre>