title: downloading file from server to local machine using javascript and java
body: <p>Whenever I click on one button it has to get one directory from other server and has to download onto the local machine. How can I do that using java and javascript.?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I'm using linux Os.
  Whenever I click on Download button from local machine(IP address:10.180.66.33), it has to connect to server(IP address:10.180.14.2) with username,passwd and it has to download one directory /home/alvin/project1/ to local machine(10.180.66.33). How can I do this?</p>