title: How to get a excel file from request?
body: <p>I am uploading an excel file from one jsp page. below is the code.</p>
  
  <pre><code> &lt;form action="Upload.jsp" enctype="MULTIPART/FORM-DATA" method=post &gt;
         &lt;input type="file" name="filename" /&gt;
         &lt;input type="submit" value="Upload" /&gt;
    &lt;/form&gt; 
  </code></pre>
  
  <p>But how to get the excel file in the next page(Upload.jsp)?
  I was using but getting error in the second line. </p>
  
  <pre><code>InputStream file = request.getInputStream();
  POIFSFileSystem myFileSystem = new POIFSFileSystem(file );
  </code></pre>
  
  <p>Then how to get the excel file from the request?</p>