title: How to link to files on local disk from html in JSF 2.0 app
body: <p>I use tomcat 7.0 and eclispe WTP plugin. I can't reference to file on my local disk.
  <code>&lt;h:graphicImage value="C:/tmp/someFile.png"/&gt;</code></p>
  
  <p>I tried to resolve it by adding in location C:\Program Files (x86)\apache-tomcat-7.0.32\webapps 
  directory tmp/ and use <code>&lt;h:graphicImage value="/tmp/someFile.png"/&gt;</code></p>
  
  <p>I tried also add from eclipse to tomcat file: server.xml <code>&lt;Context docBase="C:/tmp" path="/tmp" /&gt;</code></p>
  
  <pre><code>&lt;Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true"&gt;
  
      &lt;Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t &amp;quot;%r&amp;quot; %s %b" prefix="localhost_access_log." suffix=".txt"/&gt;
  
    &lt;Context docBase="myProjectName" path="/myProjectName" reloadable="true" source="org.eclipse.jst.jee.server:myProjectName"/&gt;
    &lt;Context docBase="C:/tmp" path="/tmp" /&gt;&lt;/Host&gt;
  </code></pre>
  
  <p>and reference to file in the same way <code>&lt;h:graphicImage value="/tmp/someFile.png"/&gt;</code></p>
  
  <p>In result I have HTTP Status 404. description The requested resource is not available.</p>
  
  <p>How Can I resolve it ?
  Thanks </p>