<logic:notEmpty name="list">
<!--遍历结果集-->
<logic:iterate id="user" name="list" type="cc.yinbo.nettrack.system.admin.Ywjkfuser">
<tr>
<td height="25" bgcolor="#FFFFFF" class="menu_list"><div align="center"><bean:write name="user" property="userid"/></div></td>
<td height="25" bgcolor="#FFFFFF" class="menu_list"><div align="center"><bean:write name="user" property="username"/></div></td>
<td height="25" bgcolor="#FFFFFF" class="menu_list"><div align="center"><bean:write name="user" property="depid"/></div></td>
<td height="25" bgcolor="#FFFFFF" class="menu_list"><div align="center"><bean:write name="user" property="invaldate"/></div></td>
<td height="25" bgcolor="#FFFFFF" class="menu_list"><div align="center">
<a href="/ywjkfuserAction.do?带上你自己的参数"/>"><img width="16" height="16" border="0" src="/images/iedit.gif" alt="修改"/></a>
<a href="/ywjkfuserAction.do?带上你自己的参数"/>" onclick="return onDelete();">
<img src="/images/idelete.gif" alt="删除" width="16" height="16" border="0"/>
</a>
</div>
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
</table>---------------------------------------------
注意,logic:iterate ,是个迭代器,在他的每一个记录输出的时候,都输出了一个连接,其中你可以把你这条记录的相关字段,作为这个连接的参数。就是这样实现。这是我程序中的一部分,你做下修改,
我做的是必须用checkbox并且有三个字段才能决定一条记录。这样好象不像你的那样。
--------------------------
你把三个关键字都传过去就可以了!
哎,,,无奈!
<bean:write name="contentList" property="colsTeId"/>$<bean:write name="contentList" property="colsTeId"/>$<bean:write name="contentList" property="colsTeId"/>
</html:multibox>
这样?
然后再分解出你那三个拼起来的值,再从你的数据库里删除.大概的思路就这样^^