大哥大姐,打扰一下,jsp如何在表格中得到表中的值进行删除、更新操作?
<table border="1" class="altrowstable" id="alternatecolor"> <tr> <th><h2 style="color:rgb(125,50,80)">医生姓名</h2></th> <th><h2 style="color:rgb(125,50,80)">病人姓名</h2></th> <th><h2 style="color:rgb(125,50,80)">时间</h2></th> <th><h2 style="color:rgb(125,50,80)">具体病症</h2></th> <th><h2 style="color:rgb(125,50,80)">挂号医院</h2></th> <th><h2 style="color:rgb(125,50,80)">挂号科室</h2></th> <th><h2 style="color:rgb(125,50,80)">具体操作</h2></th> </tr> <%ResultSet rs=null; String sql="SELECT doc_name,patient_name,time,describtion,hos_name,off_name FROM cure_record"; rs=db.executeQuery(sql); while(rs.next()){ %> <tr> <td style="size:30px"><%=rs.getString("doc_name") %></td> <td style="size:30px"><%=rs.getString("patient_name") %></td> <td style="size:30px"><%=rs.getDate("time") %></td> <td style="size:30px"><%=rs.getString("describtion") %></td> <td style="size:30px"><%=rs.getString("hos_name") %></td> <td style="size:30px"><%=rs.getString("off_name") %></td> <td><button>删除</button> <button>更新</button><td> </tr> <%} %> </table>