📄 updatepassword.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="Wed, 26 Feb 1970 08:21:57 GMT" />
<link href="${pageContext.request.contextPath}/image/main.css" rel="stylesheet" type="text/css">
<title>样式</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 18px;
font-weight: bold;
font-family: "宋体";
}
-->
</style>
<script type="text/javascript">
function returns(){
location.href="${pageContext.request.contextPath}/show/main.jsp";
}
function check(){
var tag = true;
if(document.theform.password1.value==""){
alert("输入密码不能为空请重输!");
theform.password1.focus();
return false;
}else if(document.theform.password2.value==""){
alert("修改的密码不能为空请重输!");
theform.password1.focus();
return false;
}else if(document.theform.password3.value==""){
alert("确认的密码不能为空请重输!");
theform.password1.focus();
return false;
}else if(document.theform.password2.value != document.theform.password3.value){
alert("密码不一致,请确认后重新输入!");
theform.password1.focus();
return false;
}
if(tag){
theform.submit();
}
}
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle"><table width="80%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" align="center" valign="middle"><span class="STYLE1"> 密 码 修 改 </span></td>
</tr>
</table>
<table width="48%" border="1" cellpadding="0" cellspacing="0" bordercolor="#D71920">
<tr>
<td width="100%" align="center" valign="middle"><table width="98%" height="190" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="10" colspan="3"> </td>
</tr>
<tr>
<td width="2%"> </td>
<td width="96%" align="center">
<html:form action="/systemUserAtion.do?tag=password" styleId="theform" method="post">
<table width="96%" height="155" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="34%" align="right" >当前密码:</td>
<td width="66%" align="left" valign="middle" nowrap >
<html:password property="password1"></html:password></td>
</tr>
<tr>
<td align="right" valign="middle" nowrap >修改密码:</td>
<td align="left" valign="middle" nowrap >
<html:password property="password2"></html:password></td>
</tr>
<tr>
<td height="42" align="right" valign="middle" nowrap >确认密码:</td>
<td align="left" valign="middle" nowrap >
<html:password property="password3"></html:password></td>
</tr>
<tr>
<td height="45" colspan="3" align="center" valign="middle" nowrap >
<input type="button" name="Submit" value="提 交" onClick="check();"> <input type="reset" name="Submit2" value="重 置">
<a href="<c:url value='/show/main.jsp'/>" target="_top" class="STYLE7">返回首页</a></td>
</tr>
</table>
</html:form>
</td>
<td width="2%"> </td>
</tr>
<tr>
<td height="10" colspan="3"> </td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>${requestScope.manage}
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -