updatePWD.jsp
资源名称:(J2EE)oa.rar [点击查看]
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page language="java" pageEncoding="GBK"%>
- <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
- <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
- <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
- <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <style type="text/css">
- <!--
- .STYLE1 {
- font-family: "新宋体";
- font-size: 16px;
- }
- -->
- </style>
- <script>
- function checkform(){
- var newpwd = document.getElementById("newpwd");
- var checkpwd=document.getElementById("checkpwd");
- if(newpwd.value.length<=0||checkpwd.value.length<=0){
- alert('密码不能为空!');
- return false;
- }
- if(newpwd.value!=checkpwd.value){
- alert('填入的密码不一致!');
- return false;
- }
- }
- </script>
- </head>
- <body>
- ${msg}
- <html:form action="/user.do">
- <table width="100%" height="120" border="1" cellpadding="0" cellspacing="0" bordercolor="#66CCFF" class="STYLE1">
- <html:hidden property="uno"/>
- <html:hidden property="method"/>
- <tr class="tableHead" style="font-size: 20px">
- <td height="46" colspan="2" align="center"><strong>密码修改</strong></td>
- </tr>
- <tr>
- <td align="right" width="200">原密码:</td>
- <td><html:password property="upwd" readonly="true"/>
- <SPAN id="result"></SPAN></td>
- </tr>
- <tr>
- <td align="right">新密码:</td>
- <td><input type="password" name="newpwd" id="newpwd" /></td>
- </tr>
- <tr>
- <td align="right">确认新密码:</td>
- <td><input type="password" name="checkpwd" id="checkpwd"/></td>
- </tr>
- <tr align="center"><td colspan="2">
- <html:submit value="确认" onclick="return checkform();" />
- <html:reset value="重置" /></td>
- </tr>
- </table>
- </html:form>
- </body>
- </html>