jsp单击行获取该行id,并传给servlet
<div id="center">
<table width="120%" height="50%" >
<tr ondblclick="method();">
<td>编号</td>
<td>快餐名称</td>
<td>数量</td>
<td>总计</td>
<td>客户姓名</td>
<td>联系电话</td>
<td>送餐地址</td>
<td>备注</td>
<td>状态</td>
</tr>
<%
SnackDaoImpl snackDaoImpl=new SnackDaoImpl();
List<Order>list=infos.getList();
for(int i=0;i<list.size();i++){
Order order = (Order)(infos.getList()).get(i);
%>
<tr ondblclick="method()" onclick="aa(id)">
<td><%=order.getId()%></td>
<td><a id="ti" href="modify.jsp?id=<%=order.getId()%>"><%=order.getSname()%></a></td>
<td><%=order.getNumber()%></td>
<td><%=order.getPrice()%></td>
<td><%=order.getCname()%></td>
<td><%=order.getPhone()%></td>
&nbs