日期:2014-05-17  浏览次数:20728 次

checkbox传值请教(JSP)
<body>
<form action="actions/Role_updataRole" method="post">
<table class="suggestTable">

<tr>
<td align="center">角色名:</td>
<td><s:property value="#request.role.name" /></td>

</tr>

  <tr>
  <td scope="col" align="center">菜单名称</td>
  <td scope="col" align="center">查询权</td>
  <td scope="col" align="center">修改权</td>
  <td scope="col" align="center">删除权</td>
  <td scope="col" align="center">新增权</td>
  <td scope="col" align="center">打印权</td>
  <td scope="col" align="center">导出权</td>
   
  </tr>

  <tr>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.caidan.id" value="2" />用户管理</td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.cxq" value="1" /></td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.xgq" value="1" /></td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.scq" value="1" /></td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.zjq" value="1" /></td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.dyq" value="1" /></td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.dcq" value="1" /></td>
   
  </tr>
 <tr>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.caidan.id" value="3" />角色管理</td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.cxq" value="1" /></td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.xgq" value="1" /></td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.scq" value="1" /></td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.zjq" value="1" /></td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.dyq" value="1" /></td>
  <td scope="col" align="center"><input type="checkbox" name="yhqx.dcq" value="1" /></td>
   
  </tr>
 <tr>

 
 </tr>
</table>
<input type="hidden" name="role.id" value="<s:property value="yhqx.role.id" />"/>
<input type="submit" align="center" name="Submit" value="确定" />
</form>
</body>