I'm new at this. I want to pass an array of flag values from one JSP page to another. Data Acquisition Page
<% ResultSet rs=s.notapprovedqns(); %> <% while(rs.next()) { %> <tr><td><input name="qns[]" type="checkbox" value="<% out.println(rs.getInt("question_id")); %>" /></td><td><center><%=rs.getString("question_id") %></center></td><td><%=rs.getString("question") %></td></td></tr> <% } %>
How can I get checkboxes in JSP on another page. I tried the following code but it does not work properly
String[] h=null; h=request.getParameterValues("qns[]");
But its transfer of meaning
[Ljava.lang.String;@a0a595
Please help me solve this problem.
source share