title: How to access the file in servlet which is upload in jsp using input type=file
body: <p>If any one has an idea </p>
  
  <p>how can i access a file in servlet that are upload in jsp for example</p>
  
  <p>my jsp file is </p>
  
  <p>upload.jsp</p>
  
  <pre><code>&lt;body action="Check" method="get"&gt;
  &lt;form name="f1"&gt;
  &lt;input type="file"&gt;
  &lt;input type="submit" value="Click Me"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Check.java</p>
  
  <p>Now i need that file in my Check.java file so how can i access that file in my servlet file (Check.java)</p>
  
  <p>Please any one has an idea please suggess me.</p>