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

📄 right_jsp.java

📁 一个简单的java web项目 基于servlet构建
💻 JAVA
字号:
package org.apache.jsp.pages;

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

public final class right_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  public Object 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=UTF-8");
      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");

	String cpath=request.getContextPath();

      out.write("\r\n");
      out.write("\t<head>\r\n");
      out.write("\t\t<title></title>\r\n");
      out.write("\t\t\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/css_common1.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/layout.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/mian.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n");
      out.write("\t\t<script src=\"");
      out.print(cpath);
      out.write("/js/jquery126.js\"></script>\r\n");
      out.write("\t</head>\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write(" var sp=500;\r\n");
      out.write(" $(function(){\r\n");
      out.write(" \t//$(\"div\").show(sp);\r\n");
      out.write(" });\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("<!-- \r\n");
      out.write("  //当前窗口数\r\n");
      out.write("  var windCt=0;\r\n");
      out.write(" //添加一个窗口\t\r\n");
      out.write("  function newWindow(url,id,lastid){\r\n");
      out.write("    if(windCt==0){\r\n");
      out.write("      document.getElementById(\"bk\").style.display=\"none\";\r\n");
      out.write("    }\r\n");
      out.write("\t//上一个id的窗口存在\r\n");
      out.write("\tif(document.getElementById(lastid) !=null){\r\n");
      out.write("\t\t//上一个id与当前id不相同,不显示上一个窗口,改变上一个窗口的标签背景颜色\r\n");
      out.write("\t\tif(lastid != id){\r\n");
      out.write("\t\t\tdocument.getElementById(lastid).style.display=\"none\";\r\n");
      out.write("\t\t\tparent.document.frames[\"title\"].changeLastPicture(lastid);\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("    document.getElementById(\"aa\").style.display=\"\"\r\n");
      out.write("\t//新建一个iframe里面显示打开的窗口\r\n");
      out.write("\tvar iframe = document.createElement(\"iframe\");\r\n");
      out.write("\tiframe.width =\"100%\";\r\n");
      out.write("\tiframe.height =\"100%\";\r\n");
      out.write("\tiframe.frameBorder = 0; \r\n");
      out.write("\tiframe.id = id;\r\n");
      out.write("\tiframe.src = url;\r\n");
      out.write("\tiframe.scrolling = \"auto\" \r\n");
      out.write("\tiframe.style.display = \"\";\t\r\n");
      out.write("\tdocument.getElementById(\"aa\").appendChild(iframe);\r\n");
      out.write("\t//alert(document.getElementById(\"aa\").innerHTML);\r\n");
      out.write("\t//$(\"div\").hide();\r\n");
      out.write("\t//$(\"div\").show(sp);\r\n");
      out.write("\twindCt++;\r\n");
      out.write("  }\r\n");
      out.write("     \r\n");
      out.write("\r\n");
      out.write("//显示窗口\r\n");
      out.write("  function showWindow(id,lastid){\r\n");
      out.write(" // alert(\"显示\"+\"lastid:\"+lastid+\",\"+\"id:\"+id);\r\n");
      out.write("\tif( document.getElementById(lastid) !=null){\r\n");
      out.write("\t\t//不显示上一窗口,改变上一窗口的标签颜色\r\n");
      out.write("\t\tif(lastid != id){\r\n");
      out.write("\t\t\tdocument.getElementById(lastid).style.display=\"none\";\r\n");
      out.write("\t\t\tparent.document.frames[\"title\"].changeLastPicture(lastid);\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\t//显示当前窗口和标签颜色\r\n");
      out.write("\tdocument.getElementById(id).style.display=\"\";\r\n");
      out.write("\tparent.document.frames[\"title\"].changeNowPicture(id);\r\n");
      out.write("\t//alert(document.getElementById(\"aa\").innerHTML);\r\n");
      out.write("\t//$(\"div\").hide();\r\n");
      out.write("\t//$(\"div\").show(sp);\t\r\n");
      out.write("  }\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("//删除窗口\r\n");
      out.write("  function delWindow(id,lastid){\r\n");
      out.write("  try{\r\n");
      out.write("    if(\twindCt==0){\r\n");
      out.write("      document.getElementById(\"bb\").display=\"\";\r\n");
      out.write("    }\r\n");
      out.write("    windCt--;\t\r\n");
      out.write("\tdocument.getElementById(id).src=\"about:blank\";\r\n");
      out.write("\tvar mydiv =document.getElementById(\"aa\");\r\n");
      out.write("\tif( document.getElementById(lastid) !=null){\r\n");
      out.write("\t\tif(lastid == id){\r\n");
      out.write("\t\t\tmydiv.removeChild(document.getElementById(id));\r\n");
      out.write("\t\t\tvar myid = mydiv.lastChild.getAttribute('id');\r\n");
      out.write("\t\t\tdocument.getElementById(myid).style.display=\"\";\r\n");
      out.write("\t\t\tparent.document.frames[\"title\"].changeNowPicture(myid);\r\n");
      out.write("\t\t\treturn myid;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\tmydiv.removeChild(document.getElementById(id));\r\n");
      out.write("\tdocument.getElementById(lastid).style.display=\"\";\r\n");
      out.write("\treturn lastid;\r\n");
      out.write("\t//alert(document.getElementById(\"aa\").innerHTML);\r\n");
      out.write("\t}\r\n");
      out.write("\tcatch(ex){\r\n");
      out.write("\t\t//alert(\"del:\"+ex.name+\":\"+ex.message);\r\n");
      out.write("\t}\r\n");
      out.write("  }\r\n");
      out.write("-->\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("\t<body id=\"tt\" >\t\r\n");
      out.write("\t\t<div id=\"aa\" style=\"position:absolute;width:100%;height:100%;\">\r\n");
      out.write("\t\t\t<!-- iframe id=\"bk\" frameBorder=\"0\" src=\"");
      out.print(cpath);
      out.write("/function/showDesk.action\" width=100% height=100%/-->\r\n");
      out.write("\t\t\t<iframe id=\"bk\" frameBorder=\"0\" src=\"");
      out.print(cpath);
      out.write("/pages/LeftMenu/desk/deskdrag.jsp\" width=100% height=100%/>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t</body>\r\n");
      out.write("\r\n");
      out.write("\t</center>\r\n");
      out.write("</html>\r\n");
      out.write("\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 + -