level 1
神月💕
楼主
<% List te = (List)request.getAttribute("te");
String[] check = new String[3];
String[] select = new String[3];
for(int i=0;i<3;i++){
Que que = (Que)te.get(i);
%>
<%=i+1 %><%=que.getQues() %>
A<input type="radio" name="<%=i %>" value="A">
B<input type="radio" name="<%=i %>" value="B">
C<input type="radio" name="<%=i %>" value="C">
D<input type="radio" name="<%=i %>" value="D">
<br>
<br>
<%
select[i]=
check[i] = que.getAnsw();
}
%>
就是说怎么才能把jsp页面radio选择的value传给我在java代码中创建好的一个字符数组。
2017年06月15日 09点06分
1
String[] check = new String[3];
String[] select = new String[3];
for(int i=0;i<3;i++){
Que que = (Que)te.get(i);
%>
<%=i+1 %><%=que.getQues() %>
A<input type="radio" name="<%=i %>" value="A">
B<input type="radio" name="<%=i %>" value="B">
C<input type="radio" name="<%=i %>" value="C">
D<input type="radio" name="<%=i %>" value="D">
<br>
<br>
<%
select[i]=
check[i] = que.getAnsw();
}
%>
就是说怎么才能把jsp页面radio选择的value传给我在java代码中创建好的一个字符数组。