title: Using multipart/form-data Form
body: <p>I am writing an Application to Upload Image files in to the server. 
  I am declaring a form giving the type as <strong>enctype="multipart/form-data"></strong>
  I have declare few hidden variables also inside this form. When I am trying to get the Values of these hidden variable inside a Servlet it comes as "Null".
  If I remove the <strong>enctype</strong>, I could retrieve the correct values of the variable.</p>
  
  <pre><code>JSP Form : 
  
      &lt;FORM name="form1" enctype="multipart/form-data"&gt;&lt;!-- T1787NM --&gt;
  
                  &lt;input type=hidden name="stringurl" value="&lt;%=stringurl%&gt;"&gt;
                  &lt;input type=hidden name="savetype" value="&lt;%=ACTION%&gt;"&gt; 
                  &lt;INPUT type="hidden" name="iReq" value="&lt;%=iReq%&gt;"&gt;     
                   &lt;INPUT type="File" name="FileUpload" id="fileInput"&gt;   
      &lt;/FORM&gt;
  
  Servlet : 
  
  String stringurl=(String) req.getParameter("stringurl");
  other code..
  </code></pre>
  
  <p>I want to know how to access these variables in Servlet. Thanks in Advance.</p>