请教!jsp如何判断用户按的是哪一条记录的“派遣” 或 “删除”按钮
<form action="AdminRepair" method="post"> <table> <tr> <td align="center"> <b>服务号</b> </td> <td align="center"> <b>详细描述</b> </td> <td align="center"> <b>故障分类</b> </td> <td align="center"> <b>宿舍</b> </td> <td align="center"> <b>提交人</b> </td> <td align="center"> <b>提交时间</b> </td> <td align="center"> <b>操作</b> </td> </tr> <c:forEach var="serviceWait" items="${lstServiceWait}"> <tr> <td align="center"> <font color="brown"><c:out value="${serviceWait.id}" /></font> </td> <td width="240"> <font color="brown"><c:out value="${serviceWait.describe}" /></font> </td> <td width="70" align="center"> <font color="brown"><c:out value="${serviceWait.fastType}" /></font> </td> <td align="center"> <font color="brown"><c:out value="${serviceWait.subRoom}" /></font> </td> <td align="center"> <font color="brown"><c:out value="${serviceWait.subStudent}" /></font> </td> <td width="80" align="center"> <font color="brown"><c:out value="${serviceWait.subTime}" /></font> </td> <td> <input type="submit" name="btnToSend" value="派遣" > <input type="submit" name="btnDel" value="删除" > </td> </tr> </c:forEach> </table></form>
<script>function send(id){ window.location.href = "doSendAct.do?id="+id;}function del(id){ window.location.href = "doDelAct.do?id="+id;}</script> <table> <tr> <td align="center"> <b>服务号</b> </td> <td align="center"> <b>详细描述</b> </td> <td align="center"> <b>故障分类</b> </td> <td align="center"> <b>宿舍</b> </td> <td align="center"> <b>提交人</b> </td> <td align="center"> <b>提交时间</b> </td> <td align="center"> <b>操作</b> </td> </tr> <c:forEach var="serviceWait" items="${lstServiceWait}"> <tr> <td align="center"> <font color="brown"><c:out value="${serviceWait.id}" /></font> </td> <td width="240"> <font color="brown"><c:out value="${serviceWait.describe}" /></font> </td> <td width="70" align="center"> <font color="brown"><c:out value="${serviceWait.fastType}" /></font> </td> <td align="center"> <font color="brown"><c:out value="${serviceWait.subRoom}" /></font> </td> <td align="center"> <font color="brown"><c:out value="${serviceWait.subStudent}" /></font> </td> <td width="80" align="center"> <font color="brown"><c:out value="${serviceWait.subTime}" /></font> </td> <td> <input type="button" name="btnToSend" value="派遣" onclick="send(${serviceWait.id})"> <input type="button" name="btnDel" value="删除" onclick="del(${serviceWait.id})"> </td> </tr> </c:forEach> </table>
[解决办法]