title: Download box for saving files in JSP
body: <p>I have earlier written jsp and html codes to upload a file from the hard disk into the database using </p>
  
  <pre><code>  &lt;input type="file" name="upfile" &gt;
  </code></pre>
  
  <p>But it opens a dialog box that has an "Open" button. What I need is a "Save" button that would download  a particular file to a given place in the hard disk, like what most browsers do on <strong>Save</strong> Option. Can anyone give the html codes as well as the jsp/javascript function that extracts the "download location" chosen by the user through the dialog box so as to save the file in that location. The task of saving the file is done through a java code in the backend.</p>