📄 updatepassword.jsp
字号:
<%@ page language="java" import="java.util.*" contentType="text/html; charset=GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style1.css" rel="stylesheet">
<link href="<%=request.getContextPath()%>/css/style_2.css" rel="stylesheet">
<title>修改密码</title>
<style type="text/css">
<!--
body,td,th {
color: #000000;
}
body {
background-color:#639ACE;
}
-->
</style>
<script language="javascript">
<!--
function check(){
var password1 = form.newpassword.value;
var password2 = form.password2.value;
if(password1 == ""){
alert("请输入新密码");
return false;
form.password1.focus();
history.back();
}
if(password2 == ""){
alert("确认新密码");
return false;
form.password2.focus();
history.back();
}
if(password1 != password2){
alert("输入的新密码与确认密码不同");
return false;
form.password1.focus();
history.back();
}
}
-->
</script></head>
<body>
<c:if test="${!empty updatepassword}">
<%
out
.println("<script language='javascript'>alert('修改密码成功!!!');this.close();</script>");
session.removeAttribute("updatepassword");
%>
</c:if>
<form action="<%=path%>/servlet/UpdatePasswordServlet" method="post" name="form">
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr align="center">
<th width="30%" height="25" scope="col"> </th>
<th width="20%" height="25" scope="col"> </th>
<th height="25" scope="col"> </th>
<th width="30%" height="25" scope="col"> </th>
</tr>
<tr align="center">
<td height="25"> </td>
<td height="25">用 户</td>
<td height="25">${username}</td>
<td height="25"> </td>
</tr>
<tr align="center">
<td height="25"> </td>
<td height="25">新密码 </td>
<td width="20%" height="25">
<input type="password" name="newpassword" size="15">
<input type="hidden" name="personId" value="${personId }">
</td>
<td height="25"> </td>
</tr>
<tr align="center">
<td height="25"> </td>
<td height="25" width="25%">确认密码</td>
<td width="20%" height="25">
<input type="password" name="password2" size="15">
</td>
<td height="25"> </td>
</tr>
<tr align="center">
<td height="25"> </td>
<td height="25" align="right"><input type="submit" name="submit" value="提 交" onClick="return check()"></td>
<td height="25" align="right"><input type="reset" name="reset" value="清 空"></td>
<td height="25"> </td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -