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

📄 regist.jsp

📁 一个很好的网上商城系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html> 
	<head>
	<html:base />
		<title>注册页面</title>
	<link rel="stylesheet" type="text/css" href="../photo/css.css">
	</head>
	

	<body>
	<jsp:include flush="true" page="head.jsp"/>
		<html:form action="/regist" onsubmit="return validateregistForm(this)">
			<table border="1" width="70%" align="center" cellspacing="0" cellpadding="10" bordercolor="#8000ff">
				<tr>
    				<td colspan="2" align="center"><h3>用户注册</h3></td>
    			</tr>
				<tr>
					<td>用户名 :</td>
					<td>
						<html:text property="userName"/><html:errors property="userName"/>
						<c:if test="${requestScope.registInfo=='sameName'}">
							<c:out value="该用户名已经存在!"></c:out>
						</c:if>
					</td>
				</tr>
				<tr>
					<td>密码 :</td><td><html:password property="password"/><html:errors property="password"/></td>
				</tr>
				<tr>
					<td></td>
					<td>
						<html:password property="confirmPassWord"/><html:errors property="confirmPassWord"/>
						<c:if test="${requestScope.registInfo=='differentPassword'}">
							<c:out value="两次输入密码不一致"></c:out>
						</c:if>
					</td>
				</tr>
				<tr>
					<td>电话 :</td><td><html:text property="tel"/><html:errors property="tel"/></td>
				</tr>
				<tr>
					<td>住址 :</td><td> <html:text property="address"/><html:errors property="address"/></td>
				</tr>
				<tr>
					<td>邮编 :</td><td><html:text property="postcode"/><html:errors property="postcode"/></td>
				</tr>
				<tr>
					<td>Email :</td><td><html:text property="email"/><html:errors property="email"/></td>
				</tr>
				<tr>
					<td>个人信息 :</td><td><html:text property="info"/><html:errors property="info"/></td>
				</tr>
				<tr>
					<td></td><td><html:submit value="提交"/>
						<c:if test="${requestScope.registInfo=='success'}">
					<script type="text/javascript">
						alert("注册成功");
					</script>
					<html:link href="login.jsp">登录</html:link>
				</c:if>
					</td>
				</tr>
				
			</table>
		</html:form>
	</body>
</html>

⌨️ 快捷键说明

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