I have a simple JSP that contains checkbox and submit button:
<form action="MappingSubmit.jsp" enctype="multipart/form-data" method="POST" name="fileSubmit">
<input type="checkbox" name="scan" value="scan">Scan immediately<br><br>
<input type="submit" value="Submit">
</form>
and a second JSP that should read the submitted data:
<body>
<%
response.getWriter().println(request.getParameter("scan"));
%>
</body>
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?
Thanks Udi