Hi everyone, i am trying to get values of checkboxes to insert them later on in database. It is ok that unchecked checkboxes will not be sent to my servlet but the problem that i have when cheking more than one checkboxe it returns just the first I'am doing like that im my JSP:
<td><input type=checkbox id=\""+i+"\" name=cbo value=<%=object.getNom()+ object.getPrenom() %> /> <%=object.getNom()+object.getPrenom()%></td>
And In the servlet the following:
String[] checkboxes = request.getParameterValues("cbo");
System.out.println("operators checked are:" + checkboxes[i]);
Like you see I want to get all the values checked. but if i check more than one only the first CB is shown in my servlet.
Thinks for help.