📄 register.jsp
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<title>JSP for RegisterForm form</title>
</head>
<body>
<jsp:include page="header.do"></jsp:include>
<center>
<table height="280" width="780" border="1" bordercolor="#116611">
<tr>
<td>
<center><%
String msg=(String)request.getAttribute("msg");
if(msg!=null)
{
out.println("<font color=red>"+msg+"</font>");
request.setAttribute("msg","");
}
%></center>
<center>
<html:form action="/register">
<table>
<tr><th colspan="2">用户注册</th></tr>
<tr><td>用户名:</td><td><html:text property="userName"/><html:errors property="userName"/></td></tr>
<tr><td> 密码: </td><td><html:password property="password"/><html:errors property="password"/></td></tr>
<tr><td>重复密码:</td><td> <html:password property="rePassword"/><html:errors property="rePassword"/></td></tr>
<tr><td>电子信箱:</td><td> <html:text property="email"/><html:errors property="email"/></td></tr>
<tr><td colspan="2"><html:submit/><html:cancel/></td></tr>
</table>
</html:form>
</center>
</td>
</tr>
</table>
</center>
<jsp:include page="footer.do"></jsp:include>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -