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

📄 editpassword.jsp

📁 JAVA +MySql小型用户管理系统 运用Strust+Spring+Hibernate 3框架 实现mvc jsp融合JavaScript+Ajax 技术 程序还有待完善
💻 JSP
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
	<script type="text/javascript">
	function checkpwd(inp) {
		var pwd1 = document.getElementById("pwd");
		var div1 = document.getElementById("tishi");
		if (inp.value != pwd1.value) {
			div1.style.visibility = "visible";
			inp.focus();
		} else
			div1.style.visibility = "hidden";
	}
</script>

	<head>
		<title>JSP for EditForm form</title>
	</head>
	<body background="images/5.jpg">
		<h2 align="center">
			<font size="4"> 欢迎您修改密码</font>
		</h2>
		<hr>
		<br />
		<center>
			<form action="/sshtest/edit.do" method="post">
				<table>
					<tr>
						<td>
							用&ensp;户&ensp;名 :
						</td>
						<td>
							<input type="text" name="editusername" />
						</td>
					</tr>
					<tr>
						<td>
							原始密码 :
						</td>
						<td>
							<input type="password" name="editpassword" size="22" />
						</td>
					</tr>
					<tr>
						<td>
							新&ensp;密&ensp;码 :
						</td>
						<td>
							<input type="password" name="newpassword" id="pwd" size="22" />
						</td>
					</tr>
					<tr>
						<td>
							确认密码 :
						</td>
						<td>
							<input type="password" onchange="checkpwd(this);" size="22" />
							<div id="tishi" style="color: red; visibility: hidden;">
								两次密码不一致!
							</div>
						</td>
					</tr>
					<tr>
						<td>
							密保问题:
						</td>
						<td>
							<select name="qusetions">
								<option value="questionone">
									${requestScope.user.questionone}
								</option>
								<option value="questiontwo">
									${requestScope.user.questiontwo}
								</option>
							</select>
						</td>
					</tr>
					<tr>
						<td>
							密保回答 :
						</td>
						<td>
							<input name="answers">
						</td>
					</tr>
				</table>
				<input type="hidden" name="id" value="${requestScope.user.id}" />
				<input type="hidden" name="username"
					value="${requestScope.user.username}" />
				<input type="hidden" name="sex" value="${requestScope.user.sex}" />
				<input type="hidden" name="birthday"
					value="${requestScope.user.birthday}" />
				<input type="hidden" name="email" value="${requestScope.user.email}" />
				<input type="hidden" name="telephone"
					value="${requestScope.user.telephone}" />
				<input type="hidden" name="card" value="${requestScope.user.card}" />
				<input type="hidden" name="questionone"
					value="${requestScope.user.questionone}" />
				<input type="hidden" name="answerone"
					value="${requestScope.user.answerone}" />
				<input type="hidden" name="questiontwo"
					value="${requestScope.user.questiontwo}" />
				<input type="hidden" name="answertwo"
					value="${requestScope.user.answertwo}" />
				<input type="hidden" name="popedom_id"
					value="${requestScope.user.popedom_id}" />

				<input type="hidden" name="usermethod" value="editPassword" />
				<br />
				<hr>

				<input type="submit" value="提交" name="submit"
					onclick="return confirm('确认提交修改的内容?')" />
				&emsp;&emsp;&emsp;&emsp;
				<input type="reset" value="取消" name="reset" />
			</form>
		</center>
	</body>
</html>

⌨️ 快捷键说明

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