How do you display a drop down box with a resultset in a loop? I just get a sql exception with my current servlet code.
any help appreciated
Thanks
out.println("Select Reading List");
out.println("<select name=" + rs1.getString("degree")+ ">");
while(rs1.next()){
out.println("<option value=" + rs1.getString("idcol") + ">" + rs1.getString("degree") + "</option>");
}
out.println("</select>");