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

📄 register_jsp.java

📁 功能描述 1) 后台:管理员负责对整个论坛进行管理
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
      out.write("        <input type=\"radio\" name=\"sex\" value=\"男\" checked=\"checked\" />男\r\n");
      out.write("        <input type=\"radio\" name=\"sex\" value=\"女\" />女\r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td>&nbsp;</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td>电子邮箱:</td>\r\n");
      out.write("      <td>\r\n");
      out.write("        <input type=\"text\" name=\"emailname\" size=\"10\" onblur=\"checkemail()\"/>\r\n");
      out.write("        <label>@</label>\r\n");
      out.write("        <select name=\"mailserver\">\r\n");
      out.write("          <option value=\"163.com\">163.com</option>\r\n");
      out.write("          <option value=\"126.com\">126.com</option>\r\n");
      out.write("          <option value=\"sina.com\">sina.com</option>\r\n");
      out.write("          <option value=\"sohu.com\">sohu.com</option>\r\n");
      out.write("          <option value=\"eyou.com\">eyou.com</option>\r\n");
      out.write("          <option value=\"qq.com\">qq.com</option>\r\n");
      out.write("          <option value=\"hotmail.com\">hotmail.com</option>\r\n");
      out.write("          <option value=\"yahoo.com\">yahoo.com</option>\r\n");
      out.write("        </select>\r\n");
      out.write("        <input name=\"mail\" readonly=\"readonly\" style=\"border:none;color:red\" class=\"Text\" value=\"*\" />\r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td>&nbsp;</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td>备注:</td>\r\n");
      out.write("      <td>\r\n");
      out.write("        <textarea cols=\"50\" rows=\"5\" name=\"remark\"></textarea>\r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td>&nbsp;</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td colspan=\"2\" align=\"center\">\r\n");
      out.write("        <input type=\"button\" value=\"确定\" class=\"button\" onclick=\"check()\" />&nbsp;&nbsp;&nbsp;\r\n");
      out.write("       <input type=\"reset\" value=\"重置\" class=\"button\" />\r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("  <input type=\"hidden\" name=\"email\" />\r\n");
      out.write("</form>\r\n");
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("</table>\r\n");
      out.write("</center>\r\n");
      out.write("<br />\r\n");
      out.write("<table width=\"100%\" border=\"0\">\r\n");
      out.write("  <tr style=\"font-size:12px\">\r\n");
      out.write("    <td height=\"19\" align=\"center\" colspan=\"8\">|&nbsp;<a href=\"#\"\">设为首页</a>&nbsp;|&nbsp;<a href=\"javascript:window.external.addFavorite('http://rine56.51.com','本人博客')\">加入收藏</a>&nbsp;|&nbsp;<a href=\"mailto:bai189long@163.com\">联系站长</a>&nbsp;|&nbsp;<a href=\"showfriend\" target=\"_blank\">友情链接</a>&nbsp;|&nbsp;<a href=\"www.windows.com\" target=\"_blank\">版权申明</a>&nbsp;|&nbsp;<a href=\"adminlogin.jsp\" target=\"_blank\">管理论坛</a>&nbsp;|</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr style=\"font-size:15px\">\r\n");
      out.write("    <td height=\"19\" align=\"center\" colspan=\"8\">&nbsp;&nbsp;Copyright@2008 Corporation, All Rights Reserved&nbsp;版权所有&nbsp;IT技术论坛&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("var obj = document.all;\r\n");
      out.write("function check(){\r\n");
      out.write("  if(obj.username.value==null || obj.username.value==\"\")\r\n");
      out.write("  {\r\n");
      out.write("    obj.name.value=\"用户名不能为空!\";\r\n");
      out.write("    return false;\r\n");
      out.write("  }\r\n");
      out.write("  if(obj.password.value==null || obj.password.value==\"\")\r\n");
      out.write("  {\r\n");
      out.write("    obj.pwd.value=\"密码不能为空!\";\r\n");
      out.write("    return false;\r\n");
      out.write("  }\r\n");
      out.write("\r\n");
      out.write("  if(obj.password.value.length < 6)\r\n");
      out.write("  {\r\n");
      out.write("    obj.pwd.value=\"密码不能小于6位!\";\r\n");
      out.write("    return false;\r\n");
      out.write("  }\r\n");
      out.write("  if(obj.password.value != obj.passwords.value)\r\n");
      out.write("  {\r\n");
      out.write("    obj.pwd1.value=\"两次密码输入不一致!\";\r\n");
      out.write("    return false;\r\n");
      out.write("  }\r\n");
      out.write("  if(obj.emailname.value == null || obj.emailname.value == \"\")\r\n");
      out.write("  {\r\n");
      out.write("    obj.mail.value=\"电子邮件不能为空!\";\r\n");
      out.write("    return false;\r\n");
      out.write("  }\r\n");
      out.write("  for(var i=0;i<obj.emailname.value.length;i++){\r\n");
      out.write("    if(obj.emailname.value.charCodeAt(i) <65 || obj.emailname.value.charCodeAt(i)>90){\r\n");
      out.write("      if(obj.emailname.value.charCodeAt(i) <48 || obj.emailname.value.charCodeAt(i)>57){\r\n");
      out.write("        if(obj.emailname.value.charCodeAt(i) <97 || obj.emailname.value.charCodeAt(i)>122){\r\n");
      out.write("          obj.mail.value=\"只能是数字或字母!\";\r\n");
      out.write("          return false;\r\n");
      out.write("        }\r\n");
      out.write("      }\r\n");
      out.write("    }\r\n");
      out.write("  }\r\n");
      out.write("  obj.email.value = obj.emailname.value+\"@\"+obj.mailserver.options[obj.mailserver.selectedIndex].value;\r\n");
      out.write("  ss = obj.email.value;\r\n");
      out.write("  main.submit();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function checkname(){\r\n");
      out.write("  if(obj.username.value==null || obj.username.value==\"\")\r\n");
      out.write("  {\r\n");
      out.write("    obj.name.value=\"用户名不能为空!\";\r\n");
      out.write("    return;\r\n");
      out.write("  }\r\n");
      out.write("  else{\r\n");
      out.write("    obj.name.value=\"*\";\r\n");
      out.write("    main.action=\"checkuser\";\r\n");
      out.write("    main.submit();\r\n");
      out.write("  }\r\n");
      out.write("}\r\n");
      out.write("function checkpwd(){\r\n");
      out.write("  if(obj.password.value==null || obj.password.value==\"\")\r\n");
      out.write("  {\r\n");
      out.write("    obj.pwd.value=\"密码不能为空!\";\r\n");
      out.write("  }\r\n");
      out.write("  else{\r\n");
      out.write("    obj.pwd.value=\"*\";\r\n");
      out.write("  }\r\n");
      out.write("}\r\n");
      out.write("function checkpwds(){\r\n");
      out.write("  if(obj.passwords.value==null || obj.passwords.value==\"\")\r\n");
      out.write("  {\r\n");
      out.write("    obj.pwd1.value=\"密码不能为空!\";\r\n");
      out.write("  }\r\n");
      out.write("  else{\r\n");
      out.write("    obj.pwd1.value=\"*\";\r\n");
      out.write("  }\r\n");
      out.write("}\r\n");
      out.write("function checkemail(){\r\n");
      out.write("  if(obj.emailname.value == null || obj.emailname.value == \"\")\r\n");
      out.write("  {\r\n");
      out.write("    obj.mail.value=\"电子邮件不能为空!\";\r\n");
      out.write("  }\r\n");
      out.write("  else\r\n");
      out.write("  {\r\n");
      out.write("    obj.mail.value=\"*\";\r\n");
      out.write("  }\r\n");
      out.write("}\r\n");
      out.write("</script>\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);
    }
  }

  private boolean _jspx_meth_c_if_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_if_0.setPageContext(_jspx_page_context);
    _jspx_th_c_if_0.setParent(null);
    _jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${username==null}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
    if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("游客&nbsp;&nbsp;&nbsp;&nbsp;");
        int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
    return false;
  }

  private boolean _jspx_meth_c_if_1(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_if_1.setPageContext(_jspx_page_context);
    _jspx_th_c_if_1.setParent(null);
    _jspx_th_c_if_1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${username!=null}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
    if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("<font color=\"red\">");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${username}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("</font>&nbsp;\r\n");
        out.write("        <a href=\"selectpersonalservlet?uname=");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${username}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\" target=\"_blank\">个人信息</a>&nbsp;<a href=\"#\" onclick=\"parent.location='userexit'\">退出</a>&nbsp;\r\n");
        out.write("        <a href=\"usertopic?username=");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${username}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\" target=\"_blank\">个人发贴</a>\r\n");
        out.write("      ");
        int evalDoAfterBody = _jspx_th_c_if_1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_1);
    return false;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -