title: Implementing a simple file download servlet
body: <p>How should I implement simple file download servlet? </p>
  
  <p>The idea is that with the GET request <code>index.jsp?filename=file.txt</code>, the user can download for example. <code>file.txt</code> from the file servlet and the file servlet would upload that file to user. </p>
  
  <p>I am able to get the file, but how can I implement file download?</p>