【发布时间】:2014-12-26 20:39:59
【问题描述】:
在 HTML/JSP 中,
<input type="radio" value="10" name="a">10 Records
<input type="radio" value="20" name="a">20 Records
<input type="radio" value="50" name="a">50 Records
在 Servlet 中,
String val= request.getParameter("a");
System.out.println("Record is : "+val);
变量val 返回null。
【问题讨论】:
-
你确定你提交的时候选择了一个吗?
-
你是怎么发的?
-
是的,它是我提交时选择的一个