📄 register.jsp
字号:
<%@page contentType="text/html"%><%@page pageEncoding="gb2312"%><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>注册</title> </head> <% String path=request.getContextPath(); // request.setCharacterEncoding() %> <body> <table border="0" width="1000" cellpadding="1" cellspacing="1" align="center"> <TR> <TD HEIGHT="40"> <jsp:include page="includes/head.html"/> </TR> <tr HEIGHT="580" valign="middle"> <td align="center"> <table border="0"> <jsp:useBean id="cust" class="com.ebuy.web.beans.CustomerRegisterBean" scope="page" /> <jsp:setProperty name="cust" property="*"/> <% com.ebuy.entities.CustomerEntity entity=new com.ebuy.entities.CustomerEntity(); entity.setLoginname(cust.getLoginname()); entity.setLoginkey(cust.getLoginkey()); entity.setEmail(cust.getEmail()); entity.setMobile(cust.getEmail()); entity.setRealname(cust.getRealname()); entity.setBilladdress(cust.getBilladdress()); boolean b=com.ebuy.businessfacade.CustomerFacade.registerCustomer(entity); if(b) { response.sendRedirect("login.jsp"); } %> <form name="register" method="post" action="register.jsp"> <tr> <td> <table border="0" align="left" style="font-size:x-small;"> <caption align=left>以下为必填字段</caption> <colgroup align=right> <colgroup align=center> <colgroup align=left> <tr> <td bgcolor=pink width="160">登陆名:</td> <TD> <input type="text" name="loginname" size="33" value="<jsp:getProperty name="cust" property="loginname"/>"> </TD> <td>5-20个字符(包括小写字母、数字、下划线、中文),一个汉字为两个字符。一旦注册成功会员名不能修改。</td> </tr> <tr> <td bgcolor=pink width="160">真实姓名:</td> <TD> <input type="text" name="realname" size="33" value="<jsp:getProperty name="cust" property="realname"/>"> </TD> <td>请如实填写注册人的身份证上的姓名!</td> </tr> <tr> <td bgcolor=pink width="160">密码:</td> <td> <input type="password" name="loginkey" size="33" /> </td> <td>密码由6个字符组成,请使用英文字母加数字或符号的组合密码,不能单独使用英文字母、数字或符号作为您的密码。</td> </tr> <tr> <td bgcolor=pink width="160">重复密码:</td> <td><input type="password" name="repeatkey" size="33"/></td> <td>重复上步输入的密码</td> </tr> <tr> <td bgcolor=pink width="160">电子邮件:</td> <td> <input type="text" name="email" size="33" value="<jsp:getProperty name="cust" property="email"/>"> </td> <td>例如:xxx@163.com</td> </tr> <tr> <td bgcolor=pink width="160">验证码:</td> <td align="left"> <input type="text" name="validatecode" size="10"> <img src="<%=path%>/servlets/validatecode"> </td> <td style="font-size:x-small;color:red"> </td> </tr> </table> </td> </tr> <tr> <td><hr><table border="0" align="left" style="font-size:x-small;"> <colgroup align=right> <colgroup align=center> <colgroup align=left> <tr> <td bgcolor=LemonChiffon width="160">手机号码:</td> <td> <input type="text" name="mobile" size="33" value="<jsp:getProperty name="cust" property="mobile"/>"> </td> <td>用户填写的手机号码,网站统一保密管理,用于网上交易后联系</td> </tr> <tr> <td bgcolor=LemonChiffon width="160">联系地址:</td> <td> <input type="text" name="billaddress" size="33" value="<jsp:getProperty name="cust" property="billaddress"/>"> </td> <td>作为用户默认的收货地址。</td> </tr> </table> </td> </tr> <tr> <td><input type="submit" value="同意以下协议,注册会员"/> <input type="button" value="重新填写注册信息"/> </td> </tr> <tr> <td align="center"><hr><div align="center"><h3>阅读淘宝网服务协议</h3></div><p><textarea name="area" rows="8" cols="130">协议正文。。。 </textarea> </td> </tr> </form> </table> </td> </tr> <tr height="40" > <td align="center"><jsp:include page="includes/foot.jsp"/></td> </tr> </table> </body> </html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -