title: POI HSSF XLS Download issue in Servlet - New XLS file is downloading with previous sheets
body: <p>I have created Servlet, which downloading POI XLS file, on the first get/post request new file is downloading with sheet0. When i am doing second request new file is downloading with two sheets sheet0 is previous request sheet1 is new request. Like wise if I did 4 request 4 sheet is available.</p>
  
  <p>I want only one sheet for new request. </p>
  
  <p>Servlet Code :</p>
  
  <pre><code>HSSFWorkbook wb = new HSSFWorkbook();
  
  getGet(){
      String reportname = request.getParameter("repname");
      response.setContentType("application/vnd.ms-excel");
     response.setHeader("Content-Disposition", "attachment; filename=" + reportname + ".xls");
      HSSFSheet sheet = wb.createSheet();
      int i=0;
      while(i&lt;10)
      {
          sheet.createRow(i);
          HSSFCell cell = sheet.getRow(i).createCell(0);
          cell.setCellValue("Test"+i);
          i++;
      }
      ByteArrayOutputStream outByteStream = new ByteArrayOutputStream();
      wb.write(outByteStream);
      byte [] outArray = outByteStream.toByteArray();
      OutputStream outStream = response.getOutputStream();
      outStream.write(outArray);
      outStream.flush();
      outStream.close();
  }
  </code></pre>
  
  <p>Web code :</p>
  
  <pre><code>&lt;body&gt;
      &lt;a href="../../DownloadXLS?repname=Myreport1"&gt;One&lt;/a&gt;
      &lt;a href="../../DownloadXLS?repname=Myreport2"&gt;two&lt;/a&gt;
      &lt;a href="../../DownloadXLS?repname=Myreport3"&gt;three&lt;/a&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I want only one sheet at the time of n'th request also. </p>
  
  <ul>
  <li>Where I am wrong?</li>
  <li>Any logical mistake?</li>
  </ul>