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

📄 index_jsp.java

📁 北航继续教育学院论坛的源码,演示网址www.buaaforum.com,采用struts+spring+ibats技术,数据库用 mysql
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
    _jspx_th_logic_notPresent_1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_0);
    _jspx_th_logic_notPresent_1.setName("bbsuser");
    int _jspx_eval_logic_notPresent_1 = _jspx_th_logic_notPresent_1.doStartTag();
    if (_jspx_eval_logic_notPresent_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("\t\t\t<div id=\"Layer2\" style=\"position:absolute; width:60px; height:200px; z-index:1; left:373px; top: -9px; visibility: hidden;\" onMouseOver=\"MM_showHideLayers('Layer2','','show')\" onMouseOut=\"MM_showHideLayers('Layer2','','hide')\"> \r\n");
        out.write("        ");
        int evalDoAfterBody = _jspx_th_logic_notPresent_1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_logic_notPresent_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_logic_notPresent_name.reuse(_jspx_th_logic_notPresent_1);
    return false;
  }

  private boolean _jspx_meth_html_html_1(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  html:html
    org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_1 = (org.apache.struts.taglib.html.HtmlTag) _jspx_tagPool_html_html.get(org.apache.struts.taglib.html.HtmlTag.class);
    _jspx_th_html_html_1.setPageContext(_jspx_page_context);
    _jspx_th_html_html_1.setParent(null);
    int _jspx_eval_html_html_1 = _jspx_th_html_html_1.doStartTag();
    if (_jspx_eval_html_html_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\n");
        out.write("<head>\n");
        out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
        out.write("<title>中关村软件园社区</title>\r\n");
        out.write("<script language=\"javascript\">\r\n");
        out.write("<!--\r\n");
        out.write("   function menu(){\r\n");
        out.write("    var url = document.getElementById(\"cadmin\").value;\r\n");
        out.write("    location.href = url;\r\n");
        out.write("  }\r\n");
        out.write("  function checklogin(){\r\n");
        out.write("\tif (document.login.username.value.length == 0) {\r\n");
        out.write("\t\talert(\"请输入您的用户名\");\r\n");
        out.write("\t\tdocument.login.username.focus();\r\n");
        out.write("\t\treturn false;\r\n");
        out.write("\t}\r\n");
        out.write("\t\r\n");
        out.write("\tif (document.login.username.value.length >12) {\r\n");
        out.write("\t\talert(\"用户名长度不大于12个字符\");\r\n");
        out.write("\t\tdocument.login.username.focus();\r\n");
        out.write("\t\treturn false;\r\n");
        out.write("\t}\r\n");
        out.write("\tif (document.login.username.value.indexOf(\" \")!=-1){\r\n");
        out.write("\t\talert(\"用户名不能够包含空格\");\r\n");
        out.write("\t\tdocument.login.username.focus();\r\n");
        out.write("\t\treturn false;\r\n");
        out.write("\t}\r\n");
        out.write("\tif (document.login.password.value.length == 0) {\r\n");
        out.write("\t\talert(\"请输入您的密码\");\r\n");
        out.write("\t\tdocument.login.password.focus();\r\n");
        out.write("\t\treturn false;\r\n");
        out.write("\t}\r\n");
        out.write("\tif (document.login.password.value.length < 6) {\r\n");
        out.write("\t\talert(\"密码长度应不小于6\");\r\n");
        out.write("\t\tdocument.login.password.focus();\r\n");
        out.write("\t\treturn false;\r\n");
        out.write("\t}\r\n");
        out.write("\t\r\n");
        out.write("\t}\r\n");
        out.write("\tfunction showmore() {\r\n");
        out.write("      if (flag.innerText == \"打开在线列表\") {\r\n");
        out.write("         online.style.display = \"\";\r\n");
        out.write("         flag.innerText=\"关闭在线列表\"\r\n");
        out.write("     }\r\n");
        out.write("     else{\r\n");
        out.write("         online.style.display = \"none\";\r\n");
        out.write("         flag.innerText=\"打开在线列表\";\r\n");
        out.write("     }\r\n");
        out.write("    }\r\n");
        out.write("    \r\n");
        out.write("-->\r\n");
        out.write("</script>\r\n");
        out.write("</head>\n");
        out.write("<body><!-- 这里需要判断,如果没有连接到数据库 跳转到error页面 -->\r\n");
        out.write("\t<div class=\"tabwidth\">");
        if (_jspx_meth_yhbbs_announce_0(_jspx_th_html_html_1, _jspx_page_context))
          return true;
        out.write("</div>\r\n");
        out.write("\t<div class=\"tabwidth\">");
        if (_jspx_meth_yhbbs_indexLogin_0(_jspx_th_html_html_1, _jspx_page_context))
          return true;
        out.write("</div>\r\n");
        out.write("\t<div class=\"tabwidth\">");
        if (_jspx_meth_yhbbs_newElite_0(_jspx_th_html_html_1, _jspx_page_context))
          return true;
        out.write("</div>\r\n");
        out.write("\t<div class=\"tabwidth\">");
        if (_jspx_meth_yhbbs_indexMain_0(_jspx_th_html_html_1, _jspx_page_context))
          return true;
        out.write("</div>\r\n");
        out.write("\t<div class=\"tabwidth\">");
        if (_jspx_meth_yhbbs_linkTag_0(_jspx_th_html_html_1, _jspx_page_context))
          return true;
        out.write("</div>\r\n");
        out.write("\t<div class=\"tabwidth\">");
        if (_jspx_meth_yhbbs_onLine_0(_jspx_th_html_html_1, _jspx_page_context))
          return true;
        out.write("</div><br>\r\n");
        out.write("\t<div class=\"tabwidth\">");
        if (_jspx_meth_yhbbs_footer_0(_jspx_th_html_html_1, _jspx_page_context))
          return true;
        out.write("</div>\r\n");
        out.write("</body>\n");
        int evalDoAfterBody = _jspx_th_html_html_1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_html_html_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_html_html.reuse(_jspx_th_html_html_1);
    return false;
  }

  private boolean _jspx_meth_yhbbs_announce_0(javax.servlet.jsp.tagext.JspTag _jspx_th_html_html_1, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  yhbbs:announce
    com.yhbbs.comm.tag.AnnounceTag _jspx_th_yhbbs_announce_0 = (com.yhbbs.comm.tag.AnnounceTag) _jspx_tagPool_yhbbs_announce_nobody.get(com.yhbbs.comm.tag.AnnounceTag.class);
    _jspx_th_yhbbs_announce_0.setPageContext(_jspx_page_context);
    _jspx_th_yhbbs_announce_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_1);
    int _jspx_eval_yhbbs_announce_0 = _jspx_th_yhbbs_announce_0.doStartTag();
    if (_jspx_th_yhbbs_announce_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_yhbbs_announce_nobody.reuse(_jspx_th_yhbbs_announce_0);
    return false;
  }

  private boolean _jspx_meth_yhbbs_indexLogin_0(javax.servlet.jsp.tagext.JspTag _jspx_th_html_html_1, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  yhbbs:indexLogin
    com.yhbbs.comm.tag.IndexLogin _jspx_th_yhbbs_indexLogin_0 = (com.yhbbs.comm.tag.IndexLogin) _jspx_tagPool_yhbbs_indexLogin_nobody.get(com.yhbbs.comm.tag.IndexLogin.class);
    _jspx_th_yhbbs_indexLogin_0.setPageContext(_jspx_page_context);
    _jspx_th_yhbbs_indexLogin_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_1);
    int _jspx_eval_yhbbs_indexLogin_0 = _jspx_th_yhbbs_indexLogin_0.doStartTag();
    if (_jspx_th_yhbbs_indexLogin_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_yhbbs_indexLogin_nobody.reuse(_jspx_th_yhbbs_indexLogin_0);
    return false;
  }

  private boolean _jspx_meth_yhbbs_newElite_0(javax.servlet.jsp.tagext.JspTag _jspx_th_html_html_1, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  yhbbs:newElite
    com.yhbbs.comm.tag.NewEliteCom _jspx_th_yhbbs_newElite_0 = (com.yhbbs.comm.tag.NewEliteCom) _jspx_tagPool_yhbbs_newElite_nobody.get(com.yhbbs.comm.tag.NewEliteCom.class);
    _jspx_th_yhbbs_newElite_0.setPageContext(_jspx_page_context);
    _jspx_th_yhbbs_newElite_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_1);
    int _jspx_eval_yhbbs_newElite_0 = _jspx_th_yhbbs_newElite_0.doStartTag();
    if (_jspx_th_yhbbs_newElite_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_yhbbs_newElite_nobody.reuse(_jspx_th_yhbbs_newElite_0);
    return false;
  }

  private boolean _jspx_meth_yhbbs_indexMain_0(javax.servlet.jsp.tagext.JspTag _jspx_th_html_html_1, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  yhbbs:indexMain
    com.yhbbs.comm.tag.IndexMain _jspx_th_yhbbs_indexMain_0 = (com.yhbbs.comm.tag.IndexMain) _jspx_tagPool_yhbbs_indexMain_nobody.get(com.yhbbs.comm.tag.IndexMain.class);
    _jspx_th_yhbbs_indexMain_0.setPageContext(_jspx_page_context);
    _jspx_th_yhbbs_indexMain_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_1);
    int _jspx_eval_yhbbs_indexMain_0 = _jspx_th_yhbbs_indexMain_0.doStartTag();
    if (_jspx_th_yhbbs_indexMain_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_yhbbs_indexMain_nobody.reuse(_jspx_th_yhbbs_indexMain_0);
    return false;
  }

  private boolean _jspx_meth_yhbbs_linkTag_0(javax.servlet.jsp.tagext.JspTag _jspx_th_html_html_1, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  yhbbs:linkTag
    com.yhbbs.comm.tag.LinkTag _jspx_th_yhbbs_linkTag_0 = (com.yhbbs.comm.tag.LinkTag) _jspx_tagPool_yhbbs_linkTag_nobody.get(com.yhbbs.comm.tag.LinkTag.class);
    _jspx_th_yhbbs_linkTag_0.setPageContext(_jspx_page_context);
    _jspx_th_yhbbs_linkTag_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_1);
    int _jspx_eval_yhbbs_linkTag_0 = _jspx_th_yhbbs_linkTag_0.doStartTag();
    if (_jspx_th_yhbbs_linkTag_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_yhbbs_linkTag_nobody.reuse(_jspx_th_yhbbs_linkTag_0);
    return false;
  }

  private boolean _jspx_meth_yhbbs_onLine_0(javax.servlet.jsp.tagext.JspTag _jspx_th_html_html_1, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  yhbbs:onLine
    com.yhbbs.comm.tag.OnLine _jspx_th_yhbbs_onLine_0 = (com.yhbbs.comm.tag.OnLine) _jspx_tagPool_yhbbs_onLine_nobody.get(com.yhbbs.comm.tag.OnLine.class);
    _jspx_th_yhbbs_onLine_0.setPageContext(_jspx_page_context);
    _jspx_th_yhbbs_onLine_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_1);
    int _jspx_eval_yhbbs_onLine_0 = _jspx_th_yhbbs_onLine_0.doStartTag();
    if (_jspx_th_yhbbs_onLine_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_yhbbs_onLine_nobody.reuse(_jspx_th_yhbbs_onLine_0);
    return false;
  }

  private boolean _jspx_meth_yhbbs_footer_0(javax.servlet.jsp.tagext.JspTag _jspx_th_html_html_1, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  yhbbs:footer
    com.yhbbs.comm.tag.Footer _jspx_th_yhbbs_footer_0 = (com.yhbbs.comm.tag.Footer) _jspx_tagPool_yhbbs_footer_nobody.get(com.yhbbs.comm.tag.Footer.class);
    _jspx_th_yhbbs_footer_0.setPageContext(_jspx_page_context);
    _jspx_th_yhbbs_footer_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_1);
    int _jspx_eval_yhbbs_footer_0 = _jspx_th_yhbbs_footer_0.doStartTag();
    if (_jspx_th_yhbbs_footer_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_yhbbs_footer_nobody.reuse(_jspx_th_yhbbs_footer_0);
    return false;
  }
}

⌨️ 快捷键说明

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