日期:2014-05-17 浏览次数:20785 次
public String modifyPassword() { user.setPassword(Password.createPassword(user.getPassword())); userService.update(user); return SUCCESS; }
<action name="modifyPassword" class="userBean" method="modifyPassword"> <result name="success" >/web/modifySuccess.jsp</result> <result name="input" >/web/modifyFailure.jsp</result> </action>
<s:form id="form1" name="form1" method="POST" action="/user/modifyPassword.action" theme="simple" > <div id="grxx_content_right_contnent"> <ul> <li><span class="gray">原 密 码:</span> <input name="oldPassword" type="password" class="input_border_zc" id="oldPassword" size="30" /> </li> <li><span class="gray">新 密 码:</span> <input name="user.password" type="password" class="input_border_zc" id="password" size="30"/> </li> <li><span class="gray">确认密码:</span> <input name="newPassword1" type="password" class="input_border_zc" id="password1" size="30" /> </li> </ul> <div style="padding-top:10px;"><a href="javascript:void(0)" onclick="this.blur();submit();"><img src="web/images/zc_07.jpg" width="103" height="38" /></a></div> </div> <s:submit value="提交"></s:submit> </s:form>