1.jsp页面代码:
<form action="userUpdateaction.action" method="POST">
<table width="50%" border="0" align="center" id="updUserTable" class="UserTable">
<tr>
<td width="40%" align="center" valign="middle" class="updFont">姓名:</td>
<td><label>
<input name="name" type="text" id="name" value="<%=name %>" />
</label></td>
</tr>
<tr>
<td align="center" valign="middle"> </td>
<td> </td>
</tr>
<tr>
<td align="center" valign="middle" class="updFont">登录账号:</td>
<td><input name="userId" type="text" id="userName" value="<%=userId %>" readonly="readonly"/></td>
</tr>
<tr>
<td align="center" valign="middle"> </td>
<td> </td>
</tr>
<tr>
<td align="center" valign="middle" class="updFont">密码:</td>
<td><input name="userPWD" type="text" id="userPWD" value="<%=userPWD %>" /></td>
</tr>
<tr>
<td align="center" valign="middle"> </td>
<td> </td>
</tr>
<tr>
<td align="center" valign="middle" class="updFont">权限:</td>
<td valign="middle" class="updFont"><label >
<input type="checkbox" name="staQury" value="1" id="checkBox1"/>
统计查询</label></td>
</tr>
<tr>
<td align="center" valign="middle"> </td>
<td valign="middle" class="updFont">
<input type="checkbox" name="verPublish" value="1" id="checkBox2"/>
版本发布</td>
</tr>
<tr>
<td align="center" valign="middle"> </td>
<td valign="middle" class="updFont">
<input type="checkbox" name="perManager" value="1" id="checkBox3"/>
权限管理</td>
</tr>
<tr>
<td align="center" valign="middle"> </td>
<td valign="middle" class="updFont">
<input type="checkbox" name="msgPush" value="1" id="checkBox4"/>
消息推送</td>
</tr>
<tr>
<td align="center" valign="middle"> </td>
<td> </td>
</tr>
<tr>
<td align="center" valign="middle">
<input type="submit" value="保存" /></td>
<td><input type="reset" value="取消" /></td>
</tr>
</table>
</form>
2.Action代码:
public class UserAction {
private String userId; //用户账号
private String userPWD; //用户密码
private String name; //用户姓名
private String staQury=""; //统计查询权限
private String verPublish=""; //版本发布