📄 register.jsp
字号:
<%-- Document : register Created on : 2009-2-18, 17:32:52 Author : Administrator--%><%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><%@page import="java.util.*"%><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>留言管理系统——新用户注册页面</title> </head> <body> <center> <br> <h1>留言管理系统——JSP + MVC + DAO实现</h1> <hr> <br> <%-- 加入更加详细的错误提示 --%> <% if (request.getAttribute("errors") != null) { // 有错误,要进行打印输出 List all = (List) request.getAttribute("errors"); Iterator iter = all.iterator(); while (iter.hasNext()) { %> <li><%=iter.next()%></li> <% } } %> <form name="form" action="RegisterServlet" method="POST"> <table border="0"> <thead> <tr> <th>用户注册</th> <th></th> </tr> </thead> <tbody> <tr> <td>姓名:</td> <td><input type="text" name="p_name" value="${person.p_name}" /></td> </tr> <tr> <td>密码:</td> <td><input type="password" name="p_password" value="${person.p_password}" /></td> </tr> <tr> <td>确认密码:</td> <td><input type="password" name="confirm_password" value="${person.confirm_password}" /></td> </tr> <tr> <td>性别:</td> <td><input type="radio" name="sex" value="男" checked="checked" />男 <input type="radio" name="sex" value="女" />女</td> </tr> <tr> <td>E_mail:</td> <td><input type="text" name="email" value="${person.email}" /></td> </tr> <tr> <td></td> <td><input type="submit" value="注册" name="submit" /> <input type="reset" value="重置" name="reset" /> <a href="login.jsp">返回</a></td> </tr> </tbody> </table> </form> </center> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -