title: Copying files from a shared folder to a local folder in javaservlet
body: <p>Im developing a servlet, and I have to copy a file (*.doc) from a shared folder in other computer to my servlet webapp space, but I can't. The trouble is not writing on my Apache Server, instead of, Im expecting troubles copying the file from the remote folder (shared folder in a LAN). Any suggest or idea?</p>
  
  <pre><code>File inFile = new File( "\\\\192.168.2.103\\CompartidaMatias\\tablaEstudios.txt");
          out.println("&lt;p&gt; AbsolutePath --&gt; " + inFile.getAbsolutePath() + "&lt;/p&gt;");
          out.println("&lt;p&gt; Path --&gt; " + inFile.getPath() + "&lt;/p&gt;");
          out.println("&lt;p&gt; Nombre --&gt; " + inFile.getName() + "&lt;/p&gt;");
          out.println("&lt;p&gt; WEBAPP_ROOT --&gt; " + WEBAPP_ROOT + "&lt;/p&gt;");
  
  
  
          File outFile = new File(WEBAPP_ROOT + "mydoc3a.txt");
  
          if (inFile.exists())
              out.println("&lt;p&gt;FILE FOUND&lt;/p&gt;");
          else
              out.println("&lt;p&gt;FILE NOT FOUND&lt;/p&gt;");
  </code></pre>
  
  <p>I get always FILE NOT FOUND :(
  Thanks for your time buddies!! I hope it could be solved, but I have spent all my ideas. Thanks again!!</p>