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

📄 index_jsp.java

📁 一个简单的java web项目 基于servlet构建
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
      out.write("\t}\r\n");
      out.write("\timgstatus=true;\r\n");
      out.write("\tfunction resizewin(){\r\n");
      out.write("\t  try{\r\n");
      out.write("\t\tvar img=document.getElementById(\"resizeImg\");\r\n");
      out.write("\t\tvar mtd=document.getElementById(\"menutd\");\r\n");
      out.write("\t\tif(imgstatus){\r\n");
      out.write("\t\t\timg.src=\"");
      out.print(cpath);
      out.write("/images/toright.jpg\";\r\n");
      out.write("\t\t\tmtd.style.width=\"1px\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\telse{\r\n");
      out.write("\t\t\timg.src=\"");
      out.print(cpath);
      out.write("/images/toleft.jpg\";\t\r\n");
      out.write("\t\t\tmtd.style.width=\"200px\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\timgstatus=!imgstatus;\r\n");
      out.write("\t  }\r\n");
      out.write("\t  catch(ex){\r\n");
      out.write("\t\t  alert(ex.name+\":\"+ex.message);\r\n");
      out.write("\t  }\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("</script>\r\n");
      out.write("\t<body onload=\"search();\">\r\n");
      out.write("\t\t<div class=\"layout\">\r\n");
      out.write("\t\t  <table width=100% height=100% border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t\t\t\t<tr height=\"113\">\r\n");
      out.write("\t\t\t\t\t<td colspan=\"2\" valign=\"top\">\r\n");
      out.write("\t\t\t\t\t\t<iframe name=\"menu\" src=\"\" frameborder=0 id=\"menu\"\r\n");
      out.write("\t\t\t\t\t\t\tstyle=\"width: 100%; height: 100%;\" scrolling=\"no\"></iframe>\t\t\t\t  \r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t  </tr>\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td id=\"menutd\" width=\"200\" valign=\"top\"  height=\"100%\">\r\n");
      out.write("\t\t\t\t\t  <iframe src=\"\" name=\"left\" scrolling=\"no\" id=\"left\" width=\"100%\" height=\"100%\"></iframe>\t\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t<td align=\"center\" valign=\"top\">\r\n");
      out.write("\t\t\t\t\t\t<table width=\"100%\"  height=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t<td width=\"5\"  style=\"background-color: #D4D4D4\">&nbsp;</td>\r\n");
      out.write("\t\t\t\t\t\t\t\t<td height=\"26\"><iframe src=\"\" width=\"100%\" height=\"26\"\r\n");
      out.write("\t\t\t\t\t\t\t\tid=\"title\" frameborder=\"0\" name=\"title\" scrolling=\"no\" align=\"left\"></iframe></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t<td width=10>&nbsp;</td>\r\n");
      out.write("\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t<td width=\"10\" valign=\"middle\" style=\"background-color: #D4D4D4\"><img id=\"resizeImg\" src=\"");
      out.print(cpath);
      out.write("/images/toleft.jpg\" style=\"cursor:hand\" onclick=\"resizewin()\"></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t<td valign=\"top\" height=\"100%\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<iframe src=\"\" width=\"100%\" height=\"100%\"\r\n");
      out.write("\t\t\t\t\t\t\t\t\tid=\"mian\" frameborder=\"0\" name=\"mian\" scrolling=\"no\" align=\"left\"></iframe>\r\n");
      out.write("\t\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t\t\t<td width=10>&nbsp;</td>\r\n");
      out.write("\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t</table>\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t  <td colspan=\"2\">\r\n");
      out.write("\t\t\t\t\t<table width=\"100%\" id=\"mytable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t\t\t\t\t  <tr>\r\n");
      out.write("\t\t\t\t\t    <td width=100% style=\"background:url('");
      out.print(cpath);
      out.write("/images/head_top_second2.jpg') repeat-x;\">\t\t    \r\n");
      out.write("\t\t\t\t\t\t    <marquee id=\"bulletin\" direction=\"left\" scrollamount=\"3\" class=\"white\" onmouseover=stop() onmouseout=start()>\r\n");
      out.write("\t\t\t\t\t\t    </marquee>\r\n");
      out.write("\t\t\t\t\t    </td>\r\n");
      out.write("\t\t\t\t\t  </tr>\r\n");
      out.write("\t\t\t\t\t</table>\t\t\t\t\t\t\t\t\t  \r\n");
      out.write("\t\t\t\t  </td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t</table>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t");
      if (_jspx_meth_s_005fif_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t <script language=\"JavaScript\">showloginmenus();</script>\r\n");
      out.write("</body></html>\r\n");
      out.write(" ");
    } 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_s_005fif_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:if
    org.apache.struts2.views.jsp.IfTag _jspx_th_s_005fif_005f0 = (org.apache.struts2.views.jsp.IfTag) _005fjspx_005ftagPool_005fs_005fif_005ftest.get(org.apache.struts2.views.jsp.IfTag.class);
    _jspx_th_s_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_s_005fif_005f0.setParent(null);
    _jspx_th_s_005fif_005f0.setTest("errorCode.length()>0");
    int _jspx_eval_s_005fif_005f0 = _jspx_th_s_005fif_005f0.doStartTag();
    if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.pushBody();
        _jspx_th_s_005fif_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
        _jspx_th_s_005fif_005f0.doInitBody();
      }
      do {
        out.write("\r\n");
        out.write("<script type=\"text/javascript\">\r\n");
        out.write("\talert('");
        if (_jspx_meth_s_005fproperty_005f0(_jspx_th_s_005fif_005f0, _jspx_page_context))
          return true;
        out.write("');\r\n");
        out.write("</script>\r\n");
        int evalDoAfterBody = _jspx_th_s_005fif_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.popBody();
      }
    }
    if (_jspx_th_s_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fif_005ftest.reuse(_jspx_th_s_005fif_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fif_005ftest.reuse(_jspx_th_s_005fif_005f0);
    return false;
  }

  private boolean _jspx_meth_s_005fproperty_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_s_005fif_005f0, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:property
    org.apache.struts2.views.jsp.PropertyTag _jspx_th_s_005fproperty_005f0 = (org.apache.struts2.views.jsp.PropertyTag) _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.get(org.apache.struts2.views.jsp.PropertyTag.class);
    _jspx_th_s_005fproperty_005f0.setPageContext(_jspx_page_context);
    _jspx_th_s_005fproperty_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_s_005fif_005f0);
    _jspx_th_s_005fproperty_005f0.setValue("errorCode");
    int _jspx_eval_s_005fproperty_005f0 = _jspx_th_s_005fproperty_005f0.doStartTag();
    if (_jspx_th_s_005fproperty_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f0);
    return false;
  }
}

⌨️ 快捷键说明

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