I am using Servlet. And request.getParameter() always returns null value even if the radio buttons are checked. Can anyone help?
This is my index.jsp page
<html>
<body>
<form action="FileLoader" method="post" enctype="multipart/form-data">
<p>
<label>
<input type="radio" name="se" value="pre-signing" checked = "checked">
Pre-signing </label>
<br>
<label>
<input type="radio" name="se" value="post-signing">
Post-signing </label>
</p>
</body>
</html>
This my servlet page
public void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException, java.io.IOException {
String radioButton= request.getParameter("se");
System.out.println("radioButton ::"+radioButton);}
It returns me a null value even if the radio buttons are checked.
since your encoding type is multipart.. your http request will not contain the information you need.
it will be available in the MultiPartRequest..
see this question.. it will help