struts自动赋值

来源:互联网 发布:怎么投资知乎 编辑:程序博客网 时间:2024/05/22 06:32

private password;

public String getPassword() {

return password;
}

public void setPassword(String password) {
this.password = password;

}

<tr>
    <td class="txtRight">密码:</td>
   <td class="txtLeft">
<input type="password" id="pw" name="password" value="${(model.password)!}" maxlength="20" onblur="checkpw()" style="width:90%;">
<span type="text" id="pw_msg" class="font_red"></span>
   </td>
    <td class="txtRight">确认密码:</td>


前台提交后到对应domain自动赋值。

0 0