title: How to read files on client local disk from server side code (JSP or Servlet)
body: <p>I am writing a Web Project with Java.
  I have the problems with reading files on client machine's local disk using Servlet. When I directly run the following code in Eclipse, it runs well. I can read the files on other client machine (Not on server machine). But, when I make the project war file, put it on the Tomcat Server and run it, I cannot read the files. Thanks for any hints and advice in advance.
  My code is here:</p>
  
  <pre><code>File file = new File("\\\\dell-nb\\SharedFile");
    File[] list=file.listFiles();
    for(int i=0;i&lt;list.length;i++)        
      System.out.println(list[i].getName());
  </code></pre>