私はを使用してServlet
います。またrequest.getParameter()
、ラジオボタンがチェックされている場合でも、常にnull値を返します。誰か助けてもらえますか?
これは私のindex.jsp
ページです
<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>
これは私のサーブレットページです
public void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException, java.io.IOException {
String radioButton= request.getParameter("se");
System.out.println("radioButton ::"+radioButton);}
ラジオボタンがチェックされていても、null値が返されます。