如何把表格中的行值传递到后台处理?
<%@ page contentType="text/html;charset=gbk"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<html>
<head>
<title>JSP for list form</title>
</head>
<body>
<font color="red" size=7>Result Form</font>
<form name="editform">
<table border="1">
<thead>
<tr bgcolor="pink">
<td align="center">NAME</td>
<td align="center">ADDRESS</td>
<td align="center">TELEPHONE NUMBER</td>
<td align="center">ACTION</td>
</tr>
</thead>
<tbody>
<c:forEach var="item" items="${list}">
<tr bgcolor="yellow" id="<c:out value='${item.id}'/>">
<td align="center"><c:out value="${item.name}"/></td>
<td align="center"><c:out value="${item.addr}"/></td>
<td align="center"><c:out value="${item.tel}"/></td>
<td align="center"><input type="button" value="update" onclick="doUpdate();"/><input type="button" value="delete" onclick="doDelete();"/></td>
</tr>
</c:forEach>
</tbody>
</table>
</form>
</html>
<script language="javascript">
function doUpdate(){
.......
}
function doDelete(){
document.editform.action="delete.do";
document.editform.submit();
}
</script>
我后台action处理按行删除时需要页面传递id,但id不知如何获取?请指点!急!!!