title: Problem with posting checkbox in multipart/form-data form
body: <p>I have a simple JSP that contains checkbox and submit button:</p>
  
  <pre><code>&lt;form action="MappingSubmit.jsp" enctype="multipart/form-data" method="POST" name="fileSubmit"&gt;
  &lt;input type="checkbox" name="scan" value="scan"&gt;Scan immediately&lt;br&gt;&lt;br&gt;
  &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and a second JSP that should read the submitted data:</p>
  
  <pre><code>&lt;body&gt;
  &lt;%
      response.getWriter().println(request.getParameter("scan"));
  %&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>The problem is that getParameter always returns null.
  If I remove the enctype from the form, it works.
  Why? No way to use checkbox in a multipart/form-data form?</p>
  
  <p>Thanks
  Udi</p>