title: Opening a Local PDF file in Browser using JSP
body: <p>I have tried to open a PDF file from the local disk.</p>
  
  <p>For example the Location is:</p>
  
  <pre><code>E:/files/IT/cat1/cat1Notification.pdf
  </code></pre>
  
  <p>But during runtime the link changes to: </p>
  
  <pre><code>http://localhost:8080/Office_Automation/E:/files/IT/cat1/cat1Notification.pdf
  </code></pre>
  
  <p>How to do i get rid of <code>http://localhost:8080/Office_Automation/</code> from the link and open the file?</p>
  
  <p>I have used</p>
  
  <pre><code>&lt;a href="&lt;%=path%&gt;"&gt;click here&lt;/a&gt;
  </code></pre>