当前位置: 代码迷 >> Java Web开发 >> struts2.x 批量提交有关问题
  详细解决方案

struts2.x 批量提交有关问题

热度:525   发布时间:2016-04-17 01:05:59.0
struts2.x 批量提交问题
HTML code
 
<form action="/user/save" method="post">

<table width="80%" align="center" border="1" cellpadding="3"
cellspacing="0" bordercolor="#DCDCDC" bordercolordark="#FFFFFF"
bgcolor="#FFFFFF">
<br style="line-height: 10px;" />
<tr>
<td width="60" height="30" align="center" bgcolor="#d8e899">
<input type="checkbox" name="checkbox" value="checkbox" />
删除
</td>
<td width="40" align="center" bgcolor="#d8e899">
编号
</td>
<td width="25%" align="center" bgcolor="#d8e899">
用户名
</td>
<td width="25%" align="center" bgcolor="#d8e899">
密码
</td>
<td width="25%" align="center" bgcolor="#d8e899">
用户类型
</td>

<td width="80" align="center" bgcolor="#d8e899">
操作
</td>
</tr>





<tr onmouseout="this.style.backgroundColor= '#FFFFFF';onmouseover=this.style.backgroundColor= '#f3f6ea';"
>
<td align="center">
<input type="checkbox" name="deletes" value="checkbox" />
</td>
<td align="center" height="30px;">
1
<input name="user.id" type="hidden" class="int" value="1" />
</td>
<td align="center">
<input name="user.name" type="text" class="int" value="user001" />
</td>


<td align="center">
<input name="user.password" type="text" class="int" value="001" />

</td>
<td align="center">
<input name="user.userType.id" type="hidden" class="int" value="1" />
新手上路
</td>
<td align="center" width="120">
[
<a href="#">修改 </a>] [
<a href="#" onClick="return confirm('确认删除该用户吗?');"
>删除 </a>]
</td>
</tr>



<tr onmouseout="this.style.backgroundColor= '#FFFFFF';onmouseover=this.style.backgroundColor= '#f3f6ea';"
>
<td align="center">
<input type="checkbox" name="deletes" value="checkbox" />
</td>
<td align="center" height="30px;">
2
<input name="user.id" type="hidden" class="int" value="2" />
</td>
<td align="center">
<input name="user.name" type="text" class="int" value="user002" />
</td>
  相关解决方案