www.pudn.com > struts2.rar > register2.jsp, change:2009-08-19,size:1743b


<%@ 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/> 
		<center> 
		<s:form action="register" validate="true"><!-- 客户端验证 --> 
		 
		<s:text name="addUser"> 
			<s:param>gei ziyuan wenjian chuandi canshu yonglai tianchong {0}{1}</s:param> 
		</s:text><!-- 按照资源文件的优先级找到资源文件然后找key="addUser"的键值 --> 
		 
		<s:i18n name="message2"><!-- 从指定的资源包message2资源文件中找key="addUser"的键值 --> 
			<s:text name="addUser"></s:text> 
		</s:i18n> 
		 
		<s:textfield label="username" name="username" /> 
		<s:password label="password" name="password"/> 
		<s:password label="repassword" name="repassword"/> 
		<s:textfield label="age" name="age" /> 
		<s:textfield label="birthday" name="birthday" /> 
		<s:textfield label="graduation" name="graduation"/> 
		<s:submit label="submit"/> 
		<s:reset label="reset"></s:reset> 
		</s:form> 
		</center> 
 
	</body> 
</html>