⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 amendpassword.jsp

📁 简单的学生管理系统,使用的是SQL2005数据库
💻 JSP
字号:
<%@ page language="java" import="java.util.*" 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">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'AmendPassword.jsp' starting page</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="#50DBD6">
 <h2 align="center">修改密码</h2>
 <form action="AmendPassword" method="POST" onsubmit="return _onclick()">
<table width="284" height="129" border="1" align="center" >
  <tr>
    <td width="100"><div align="center"><font size="4">密码:</font></div></td>
    <td width="168"><div align="center">
      <input type="password" name="password" />
    </div></td>
  </tr>
  <tr>
    <td><div align="center"><font size="4">新密码:</font></div></td>
    <td><div align="center"> <input type="password" name="newpassword" /></div></td>
  </tr>
  <tr>
    <td><div align="center"><font size="4">重复密码:</font></div></td>
    <td><div align="center"> <input type="password" name="newpassword1" /></div></td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">
      <input type="submit" name="Submit" value="提交" />
	  &nbsp;&nbsp;
      <input type="reset" name="Submit2" value="重置" />
    </div></td>
  </tr>
</table>
</form>
  </body>
</html>
	<script type="text/javascript">
    <!--
        function  _onclick()
        {
            var password = document.getElementById("newpassword").value;
            var password1 = document.getElementById("newpassword1").value;
            if(password!=password1)
            {
                alert("重复密码不一致!");
                return false;
            }
            else
            {
                return true;
            }
        }
    //-->
    
    </script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -