批量删除这一块的代码
<form action="user_deleteAll.do">
<div id="top">
<input type="button" value="新增" onclick="window.location.href='user_addPage.do?queryBean.name=<s:property value="queryBean.name"/>&queryBean.age=<s:property value="queryBean.age"/>&queryBean.sex=<s:property value="queryBean.sex"/>';" />
<input type="submit" value="删除" />
</div>
<div id="content">
<table class="table" cellspacing="0" cellpadding="1">
<tr>
<th width="100px"></th>
<th width="100px">姓名</th>
<th width="100px">年龄</th>
<th width="100px">性别</th>
<th width="200px"></th>
</tr>
<s:iterator value="ubList" >
<tr>
<td>
<input type="checkbox" name="ids" value="<s:property value="userID" />" />
</td>
<td><s:property value="name"/></td>
<td><s:property value="age"/></td>
<td><s:property value="sex"/></td>
<td>
<a href="user_updatePage.do?userID=<s:property value="userID" />&queryBean.name=<s:property value="queryBean.name"/>&queryBean.age=<s:property value="queryBean.age"/>&queryBean.sex=<s:property value="queryBean.sex"/>">修改</a>
<a href="user_deleteUser.do?userID=<s:property value="userID" />&queryBean.name=<s:property value="queryBean.name"/>&queryBean.age=<s:property value="queryBean.age"/>&queryBean.sex=<s:property value="queryBean.sex"/>">删除</a>
</td>
</tr>
</s:iterator>
</table>
</div>
</form>
<form action="user_deleteAll.do">
<div id="top">
<input type="button" value="新增" onclick="window.location.href='user_addPage.do?queryBean.name=<s:property value="queryBean.name"/>&queryBean.age=<s:property value="queryBean.age"/>&queryBean.sex=<s:property value="queryBean.sex"/>';" />
<input type="submit" value="删除" />
</div>
<div id="content">
<table class="table" cellspacing="0" cellpadding="1">
<tr>
<th width="100px"></th>
<th width="100px">姓名</th>
<th width="100px">年龄</th>
<th width="100px">性别</th>
<th width="200px"></th>
</tr>
<s:iterator value="ubList" >
<tr>
<td>
<input type="checkbox" name="ids" value="<s:property value="userID" />" />
</td>
<td><s:property value="name"/></td>
<td><s:property value="age"/></td>
<td><s:property value="sex"/></td>
<td>
<a href="user_updatePage.do?userID=<s:property value="userID" />&queryBean.name=<s:property value="queryBean.name"/>&queryBean.age=<s:property value="queryBean.age"/>&queryBean.sex=<s:property value="queryBean.sex"/>">修改</a>
<a href="user_deleteUser.do?userID=<s:property value="userID" />&queryBean.name=<s:property value="queryBean.name"/>&queryBean.age=<s:property value="queryBean.age"/>&queryBean.sex=<s:property value="queryBean.sex"/>">删除</a>
</td>
</tr>
</s:iterator>
</table>
</div>
</form>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货