rs.get("id")
这个函数不能连续调用?
out.print("<input type = radio name = modify value ="+rs.getInt("id")+">");
out.print("</td>");
//out.print("<input type = checkbox name = delete value ="+rs.getInt("id")+">");
//out.print("<br>");
上面那行都OK为什么注释的那行就有错误呢
我引掉两行中的任意一行就OK。。。。。
------解决方案--------------------
对的
你可以先赋给一个变量
即
int id=rs.getInt("id");
out.print("<input type = radio name = modify value ="+id+">");
out.print("</td>");
out.print("<input type = checkbox name = delete value ="+id+">");
out.print("<br>");