title: How to upload a text file in jsp
body: <p>I am trying to upload a <strong>text</strong> file from client machine to server. Below is the code I am using in jsp.</p>
  
  <pre><code>&lt;tr&gt;
               &lt;td class="FORMLABEL" nowrap valign=middle&gt;
                &amp;nbsp;&amp;nbsp;&lt;%= fileLabel %&gt;&amp;nbsp;
               &lt;/td&gt;
               &lt;td class="FORMELEMENT" nowrap valign=middle&gt;
                &lt;input  size = "50" name="loadFile" type="FILE" &gt;
               &lt;/td&gt;
       &lt;/tr&gt;
  </code></pre>
  
  <p>I have checked the content Type of the load file, it is <strong>application/x-www-form-urlencoded</strong> 
  I need to read the file. How can I <strong>copy this file from client machine to the server</strong> using JSP?</p>