📄 registeruser_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class registeruser_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<link href=\"css/hotel.css\" rel=\"stylesheet\">\r\n");
out.write("<script src=\"js/registeruser.js\" language=\"javascript\" ></script>\r\n");
out.write("<title>用户注册页面</title>\r\n");
out.write("</head>\r\n");
out.write("<body bgcolor=\"#ffffff\">\r\n");
out.write("<table width=\"760\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"83\" valign=\"top\">\r\n");
out.write(" ");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "topindex.jsp", out, false);
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"2\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td>");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "banner.jsp", out, false);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"left\" valign=\"top\"><form name=\"form1\" method=\"post\" action=\"adduserservlet\">\r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"tableBorder_LTR_dashed\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"40\" align=\"center\">用户注册</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"50%\" height=\"26\" align=\"center\">用 户 名:</td>\r\n");
out.write(" <td>\r\n");
out.write(" <input name=\"userId\" onkeyup=\"value=value.replace(/[\\W]/g,'') \"onbeforepaste=\"clipboardData.setData('text',clipboardData.getData('text').replace(/[^\\d]/g,''))\" class=\"inpu\" type=\"text\" id=\"userId\">\r\n");
out.write(" <font color=\"#FF0000\">*</font> \r\n");
out.write("\t\t\t <script language=\"javascript\">\r\n");
out.write("\t\t\tfunction checkuser(name){\r\n");
out.write("\t\t\t\tif(name==\"\"){\r\n");
out.write("\t\t\t\t\talert(\"请输入用户名!\");form1.userId.focus();return;\r\n");
out.write("\t\t\t\t}\r\n");
out.write("\t\t\t\t var str=\"checkuserservlet?name=\"+name;\r\n");
out.write("\t\t\t\twindow.showModalDialog(str,\"\",\"dialogWidth=300px;dialogHeight=150px;status=no;help=no;scrollbars=no\");\r\n");
out.write("\t\t\t}\r\n");
out.write("\t\t</script>\r\n");
out.write("\t\t\t <a onClick=\"checkuser(form1.userId.value)\" style=\"cursor:hand\">该用户是否已被用</a>(只能是英文和数字)</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"26\" align=\"center\">密 码:</td>\r\n");
out.write(" <td height=\"26\"><input name=\"password\" type=\"password\" class=\"inpu\" id=\"password\" size=\"22\">\r\n");
out.write(" <font color=\"#FF0000\">*</font></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"26\" align=\"center\">确认密码:</td>\r\n");
out.write(" <td height=\"26\"><input name=\"ispassword\" type=\"password\" class=\"inpu\" id=\"ispassword\" size=\"22\">\r\n");
out.write(" <font color=\"#FF0000\">*</font></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"26\" align=\"center\">真实姓名:</td>\r\n");
out.write(" <td height=\"26\"><input name=\"name\" class=\"inpu\" type=\"text\" id=\"name\">\r\n");
out.write(" <font color=\"#FF0000\">*</font></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"26\" align=\"center\">头像 ID:</td>\r\n");
out.write(" <td height=\"26\"><input name=\"imageId\" class=\"inpu\" type=\"text\" id=\"imageId\">\r\n");
out.write(" 选择 </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"26\" align=\"center\">性 别:</td>\r\n");
out.write(" <td><input name=\"sex\" class=\"inpu\" type=\"text\" id=\"sex\">\r\n");
out.write(" <font color=\"#FF0000\">*</font></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"26\" align=\"center\">年 龄:</td>\r\n");
out.write(" <td height=\"26\"><input name=\"age\" onkeyup=\"value=value.replace(/[^\\d]/g,'') \"onbeforepaste=\"clipboardData.setData('text',clipboardData.getData('text').replace(/[^\\d]/g,''))\" class=\"inpu\" type=\"text\" id=\"age\">\r\n");
out.write(" <font color=\"#FF0000\">*</font></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"26\" align=\"center\">电子邮件:</td>\r\n");
out.write(" <td height=\"13\"><input name=\"email\" class=\"inpu\" type=\"text\" id=\"email\">\r\n");
out.write(" <font color=\"#FF0000\">*</font>(只能163,hotmail)</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"26\" align=\"center\">联系电话:</td>\r\n");
out.write(" <td height=\"13\"><input name=\"tel\" class=\"inpu\" type=\"text\" id=\"tel\">\r\n");
out.write(" <font color=\"#FF0000\">*</font>(只能输入手机号)</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"26\" align=\"center\">联系地址:</td>\r\n");
out.write(" <td height=\"26\"><input name=\"address\" class=\"inpu\" type=\"text\" id=\"address\">\r\n");
out.write(" <font color=\"#FF0000\">*</font></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"40\" colspan=\"2\" align=\"center\">\r\n");
out.write(" <input type=\"button\" name=\"Submit\" onClick=\"checkselect(form1)\" class=\"btn_grey\"value=\"确认\">\r\n");
out.write(" \r\n");
out.write(" <label>\r\n");
out.write(" <input type=\"reset\" name=\"Submit2\" value=\"重置\" class=\"btn_grey\">\r\n");
out.write(" </label></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"20\" colspan=\"2\" align=\"center\">注意:请认真填写.已保证后来操作正确</td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </form>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr height=\"150\">\r\n");
out.write(" <td>\r\n");
out.write(" ");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "Copyright.jsp", out, false);
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -