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

📄 register.jsp

📁 当下流行的struts2的一个简单应用
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<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">
		<script type="text/javascript" src="<%=path%>/dwr/util.js"></script>
		<script type="text/javascript" src="<%=path%>/dwr/engine.js"></script>
		<script type="text/javascript"
			src="<%=path%>/dwr/interface/validator.js"></script>
		<script type="text/javascript" src="<%=path%>/common/register.js"></script>
	</head>

	<body>
		<s:form action="/user/saveAccount.action">
			<table align="center">
				<tr>
					<th colspan="4">
						<h3>欢迎进入注册系统</h3>
					</th>
				</tr>
				<tr>
					<td>
						用户名:
					</td>
					<td>
						<input type="text" id="userName" name="userName" />
					</td>
					<td>
						<input type="button" id="checkUser" value="检测用户名"
							onclick="validatorUserName()" />
					</td>
					<td id="checkResult"></td>
				</tr>
				<tr>
					<td>
						密码:
					</td>
					<td>
						<input type="password" id="password" name="password"
							onchange="checkPassword()"/>
					</td>
					<td>
						密码至少6位
					</td>
					<td id="passwordMessage"></td>
				</tr>
				<tr>
					<td>
						确认密码:
					</td>
					<td>
						<input type="password" id="repassword" onchange="checkRePassword()"/>
					</td>
					<td>
						请确认您的密码
					</td>
					<td id="repwdMessage"></td>
				</tr>
				<tr>
					<td colspan="3" align="center">
						<input type="submit" value="下一步" />
						<input type="reset" value="重置">
					</td>
				</tr>
			</table>
		</s:form>
	</body>
</html>

⌨️ 快捷键说明

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