www.pudn.com > struts2.rar > register.jsp, change:2009-08-20,size:2854b


<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
 
<% 
	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 'register.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> 
 
		<s:fielderror></s:fielderror> 
		<s:actionerror/> 
 
 
		<form action="register.action" method="post"> 
			<s:token ></s:token> 
			<table align="center" width="40%" border="1"> 
 
				<tr> 
 
					<td> 
						username 
					</td> 
 
					<td> 
						<s:textfield label="username" name="username" theme="simple"/> 
					</td> 
					<td> 
						<s:fielderror><!-- 只显示username数据类型转换或输入校验的错误 --> 
							<s:param>username</s:param> 
						</s:fielderror> 
					</td> 
				</tr> 
 
				<tr> 
					<td> 
						password 
					</td> 
 
					<td> 
						<s:textfield label="password" name="password" theme="simple"/> 
					</td> 
					<td> 
						<s:fielderror> 
							<s:param>password</s:param> 
						</s:fielderror> 
					</td> 
				</tr> 
 
 
				<tr> 
					<td> 
						re-password 
					</td> 
 
					<td> 
						<s:textfield label="repassword" name="repassword" theme="simple"/> 
					</td> 
					<td> 
						<s:fielderror> 
							<s:param>repassword</s:param> 
						</s:fielderror> 
					</td> 
				</tr> 
 
				<tr> 
					<td> 
						age 
					</td> 
 
					<td> 
						<s:textfield label="age" name="age" theme="simple"/> 
					</td> 
					<td> 
						<s:fielderror> 
							<s:param>age</s:param> 
						</s:fielderror> 
					</td> 
				</tr> 
 
				<tr> 
					<td> 
						birthday 
					</td> 
 
					<td> 
						<s:textfield label="birthday" name="birthday" theme="simple"/> 
					</td> 
					<td> 
						<s:fielderror> 
							<s:param>birthday</s:param> 
						</s:fielderror> 
					</td> 
				</tr> 
 
				<tr> 
					<td> 
						graduation 
					</td> 
 
					<td> 
						<s:textfield label="graduation" name="graduation" theme="simple"/> 
					</td> 
					<td> 
						<s:fielderror> 
							<s:param>graduation</s:param> 
						</s:fielderror> 
					</td> 
				</tr> 
 
				<tr> 
					<td> 
						<input type="submit" value=" submit "> 
					</td> 
 
					<td> 
						<input type="reset" value=" reset "> 
					</td> 
				</tr> 
 
 
			</table> 
		</form> 
	</body> 
</html>