这是调用javascript函数的代码..
<td><input type="button" name="edit" value="Edit" onclick="editRecord(<%=rs.getString(1)%>);" ></td>
<td><input type="button" name="delete" value="Delete" onclick="deleteRecord(<%=rs.getString(1)%>);" ></td>
javascripts 函数是“SSuers”是表单名称。
<script language="javascript">
function editRecord(id){
var f=document.SSusers;
f.method="POST";
f.action= 'edit.jsp?+id='+id;
f.submit();}
function deleteRecord(id){
var f=document.SSusers;
f.method="post";
f.action='./DeleteServlet?id='+id;
f.submit();}
</script>
请帮我修复它..