updatepassword.jsp

<%@ page language="java" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/cs.css">
<title>Insert title here</title>
</head>
<body>
<form action="<%=basePath%>UpdatePassword" method="post">
<table>
<tr>
<td class='listTitleMain' colspan=2>修改密码 <font color="red">
<%
String s = (String) request.getAttribute("update");
if (s != null) {
out.print(s);
}
%>
</font>
</td>
</tr>
<tr>
<td class='cardOddlineLabel'>原密码 <input type="hidden"
name="passwordyuan">
</td>
<td><input type="text" name="password"></td>
</tr>
<tr>
<td class='cardOddlineLabel'>新密码</td>
<td><input type="text" name="passwordone"></td>
</tr>
<tr>
<td class='cardOddlineLabel'>新密码</td>
<td><input type="text" name="passwordtow"></td>
</tr>
<tr>
<td></td>
<td><input type="hidden" name=id
value="<%=(String) session.getAttribute("c_id")%>"> <input
type="submit" value="提 交" class="defaultButton"> <input
type="reset" value="重 置" class="defaultButton"></td>
</tr>
</table>
</form>
</body>
</html>

原文地址:https://www.cnblogs.com/Anei/p/7789968.html