⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 register_jsp.java

📁 一个oracle和JSP做的论坛
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class register_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=GB2312");
      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("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<link href=\"/css/xmwuye.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<title>用户注册</title>\r\n");
      out.write("</head>\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("\tfunction check(form)\r\n");
      out.write("\t{\r\n");
      out.write("    if (form.bbsuser.value==\"\")\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"请填写昵称!\");\r\n");
      out.write("    \t\tform.bbsuser.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t}\r\n");
      out.write("  if (form.bbsuser.value.length<3||form.bbsuser.value.length>8)\r\n");
      out.write("   {\r\n");
      out.write("     alert(\"昵称长度只能是3-8位。\");\r\n");
      out.write("     form.bbsuser.focus();\r\n");
      out.write("     form.bbsuser.select();\r\n");
      out.write("     return false;\r\n");
      out.write("   }\r\n");
      out.write("    if (form.name.value==\"\")\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"请填写用户名!\");\r\n");
      out.write("    \t\tform.name.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t}\r\n");
      out.write("  if (form.name.value.length<3||form.name.value.length>8)\r\n");
      out.write("   {\r\n");
      out.write("     alert(\"用户名长度只能是3-8位。\");\r\n");
      out.write("     form.name.focus();\r\n");
      out.write("     form.name.select();\r\n");
      out.write("     return false;\r\n");
      out.write("   }\r\n");
      out.write("    if (form.password.value==\"\")\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"请填写密码!\");\r\n");
      out.write("    \t\tform.password.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t}\r\n");
      out.write("  if (form.password.value.length<3||form.password.value.length>8)\r\n");
      out.write("   {\r\n");
      out.write("     alert(\"密码长度只能是3-8位。\");\r\n");
      out.write("     form.password.focus();\r\n");
      out.write("     form.password.select();\r\n");
      out.write("     return false;\r\n");
      out.write("   }\r\n");
      out.write("    if (form.pwdsub.value==\"\")\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"请填写确认密码!\");\r\n");
      out.write("    \t\tform.pwdsub.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t}\r\n");
      out.write("    if (form.pwdsub.value!=form.password.value)\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"密码和密码确认不一致!\");\r\n");
      out.write("    \t\tform.pwdsub.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t}\r\n");
      out.write("    if (form.question.value==\"\")\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"请填写忘记密码时的问题!\");\r\n");
      out.write("    \t\tform.question.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t}\r\n");
      out.write("    if (form.answer.value==\"\")\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"请填写问题的答案!\");\r\n");
      out.write("    \t\tform.answer.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t}\r\n");
      out.write("    if (form.email.value==\"\")\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"请填写您的Email!\");\r\n");
      out.write("    \t\tform.email.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t}\r\n");
      out.write("  if ((form.email.value.indexOf(\"@\")==-1)||(form.email.value.indexOf(\".\")==-1))\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"email格式有错!(例如:master@xmwuye.com)\");\r\n");
      out.write("    \t\tform.email.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t    }\r\n");
      out.write("\t\treturn true;\r\n");
      out.write("\t}\r\n");
      out.write("</script>\r\n");
      out.write("<body topmargin=\"5\">\r\n");
      out.write("<form name=\"form1\" method=\"post\" action=\"registerservlet\" onsubmit=\"return check(this)\" style=\"MARGIN-TOP: 0px\">\r\n");
      out.write("<table width=98% border=0 align=center cellpadding=2 cellspacing=1 bgcolor=\"#A4B6D7\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=750 height=25 background=\"../images/bbs_bg1.gif\">\r\n");
      out.write("      <div align=\"center\">\r\n");
      out.write("        <font color=#ff0000>\r\n");
      out.write("          <strong>            注册前请先阅读以下协议并填写以下注册信息\r\n");
      out.write("            <span class=S><font color=#ff0000>(*</font><font color=#ff6600>的为必填项)</font></span>\r\n");
      out.write("          </strong>\r\n");
      out.write("        </font>\r\n");
      out.write("      </div>\r\n");
      out.write("    </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=98% height=\"492\" border=0 align=center cellpadding=2 cellspacing=1 bgcolor=\"#A4B6D7\">\r\n");
      out.write("  <tbody>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td width=750 height=20 valign=top bgcolor=\"#F2F8FF\">\r\n");
      out.write("        <div align=\"center\">\r\n");
      out.write("          <table width=\"93%\" cellspacing=\"1\" cellpadding=\"2\" align=\"center\" border=\"0\" bordercolor=\"#FFFFFF\">\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td colspan=\"2\" bordercolor=\"#000000\" height=\"30\">\r\n");
      out.write("                欢迎您加入本站点参加交流和讨论,本站点为公共论坛,为维护网上公共秩序和社会稳定,请您自觉遵守以下条款:\r\n");
      out.write("                、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播下列信息:\r\n");
      out.write("                <br>\r\n");
      out.write("                 (一)煽动抗拒、破坏宪法和法律、行政法规实施的;\r\n");
      out.write("                <br>\r\n");
      out.write("                 (二)煽动颠覆国家政权,推翻社会主义制度的;\r\n");
      out.write("                <br>\r\n");
      out.write("                 (三)煽动分裂国家、破坏国家统一的;\r\n");
      out.write("                <br>\r\n");
      out.write("                 (四)煽动民族仇恨、民族歧视,破坏民族团结的;\r\n");
      out.write("                <br>\r\n");
      out.write("                 (五)捏造或者歪曲事实,散布谣言,扰乱社会秩序的;\r\n");
      out.write("                <br>\r\n");
      out.write("                 (六)宣扬封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪的;\r\n");
      out.write("                <br>\r\n");
      out.write("                 (七)公然侮辱他人或者捏造事实诽谤他人的,或者进行其他恶意攻击的;\r\n");
      out.write("                <br>\r\n");
      out.write("                 (八)损害国家机关信誉的;\r\n");
      out.write("                <br>\r\n");
      out.write("                 (九)其他违反宪法和法律行政法规的;\r\n");
      out.write("                <br>\r\n");
      out.write("                 (十)进行商业广告行为的。\r\n");
      out.write("                <br>\r\n");
      out.write("                二、互相尊重,对自己的言论和行为负责。\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("          </table>\r\n");
      out.write("          <table width=\"93%\" border=\"0\" align=\"center\" cellspacing=\"1\" cellpadding=\"2\" height=\"290\">\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td colspan=\"2\" height=\"9\">\r\n");
      out.write("                <hr size=\"1\">\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td width=\"20%\" height=\"20\" bgcolor=\"#F2F8FF\">\r\n");
      out.write("                <div align=\"right\">昵 称:</div>\r\n");
      out.write("              </td>\r\n");
      out.write("              <td width=\"80%\" height=\"20\">                &nbsp;\r\n");
      out.write("                <input type=\"text\" name=\"bbsuser\" size=\"15\">\r\n");
      out.write("                 \r\n");
      out.write("                <font color=\"#CC0000\">*</font>\r\n");
      out.write("                <font color=\"#FF0000\">汉字、a-z的英文字母、0-9的数字或下划线组成</font>\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td width=\"20%\" height=\"20\" bgcolor=\"#F2F8FF\">\r\n");
      out.write("                <div align=\"right\">用户名:</div>\r\n");
      out.write("              </td>\r\n");
      out.write("              <td width=\"80%\" height=\"20\">                &nbsp;\r\n");
      out.write("                <input type=\"text\" name=\"name\" size=\"15\">\r\n");
      out.write("                 \r\n");
      out.write("                <font color=\"#FFFFFF\">&nbsp;&nbsp;&nbsp;</font>\r\n");
      out.write("                <font color=\"#CC0000\">                </font>\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td width=\"20%\" height=\"20\" bgcolor=\"#F2F8FF\">\r\n");
      out.write("                <div align=\"right\">密 码:</div>\r\n");
      out.write("              </td>\r\n");
      out.write("              <td width=\"80%\" height=\"20\">                &nbsp;\r\n");
      out.write("                <input type=\"password\" name=\"password\" size=\"15\">\r\n");
      out.write("                 \r\n");
      out.write("                <font color=\"#CC0000\">*(请填写3-8位密码)</font>\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td width=\"20%\" height=\"20\" bgcolor=\"#F2F8FF\">\r\n");
      out.write("                <div align=\"right\">密码确认:</div>\r\n");
      out.write("              </td>\r\n");
      out.write("              <td width=\"80%\" height=\"20\">                &nbsp;\r\n");
      out.write("                <input type=\"password\" name=\"pwdsub\" size=\"15\">\r\n");
      out.write("                 \r\n");
      out.write("                <font color=\"#CC0000\">*(请填写3-8位密码)</font>\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td width=\"20%\" height=\"20\" bgcolor=\"#F2F8FF\">\r\n");
      out.write("                <div align=\"right\">你的E-mail信箱:</div>\r\n");
      out.write("              </td>\r\n");
      out.write("              <td width=\"80%\" height=\"20\">                &nbsp;\r\n");
      out.write("                <input type=\"text\" name=\"email\" size=\"15\">\r\n");
      out.write("                 \r\n");
      out.write("                <font color=\"#CC0000\">*格式:x@x.com</font>\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"20\">\r\n");
      out.write("                <div align=\"center\">                </div>\r\n");
      out.write("              </td>\r\n");
      out.write("              <td height=\"30\">\r\n");
      out.write("                <input type=\"submit\" name=\"Submit2\" value=\"注册\">\r\n");
      out.write("                <input type=\"reset\" name=\"Submit2\" value=\"重填\">\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("          </table>\r\n");
      out.write("        </div>\r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </tbody>\r\n");
      out.write("</table>\r\n");
      out.write("</FORM>\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 + -