📄 updatepassword.jsp
字号:
<%@ page language="java" pageEncoding="gb2312"%>
<%@ page import="domain.User"%>
<%
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>
<base href="<%=basePath%>">
<title>修改密码</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body BGCOLOR="00AAFF">
<%
User user = (User)session.getAttribute("user");
if (user == null) {
out.println("请先登陆,然后你才可以进行操作!<br>");
out.println("<a href=\"./user/login.jsp\">点击这里登陆.</a>");
}
else {
%>
<h1 align="center">修改密码</h1>
<div align="center">
<form action="cc?module=user&action=updatepassword" method="post">
<table border="2">
<tr><td>旧密码:</td><td><input type="password" name="oldpassword" /></td></tr>
<tr><td>新密码:</td><td><input type="password" name="newpassword" /></td></tr>
<tr><td>重输确认:</td><td><input type="password" name="confirm"></td></tr>
</table>
<input type="submit" name="submit" value="提交" />
<input type="reset" name="reset" value="取消" /><br>
</form>
</div>
<%
}
%>
<a href="./user/userhome.jsp">返回主页</a>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -