title: Read a resource file inside JSF application
body: <p>I need to grab a resource file inside my JSF application.</p>
  
  <pre><code>InputStream input = new FileInputStream("filename.xml");
  </code></pre>
  
  <p>However, the system does not find <code>filename.xml</code> file, which is in the same folder as the <code>sample.xhtml</code> web page. How do I get an <code>InputStream</code> of it?</p>