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

📄 showkmtree_jsp.java

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

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import cn.aresoft.po.KmTree;

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

  private static java.util.List _jspx_dependants;

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.release();
  }

  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("\r\n");

	String cpath=request.getContextPath();

      out.write("\r\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("  <head>  \r\n");
      out.write("    <title>知识库目录管理</title>\r\n");
      out.write("    <link rel=\"StyleSheet\" href=\"");
      out.print(cpath);
      out.write("/style/tree.css\" type=\"text/css\">\r\n");
      out.write("    <link href=\"");
      out.print(cpath);
      out.write("/style/layout.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("\t<link href=\"");
      out.print(cpath);
      out.write("/style/mian.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("\t<link href=\"");
      out.print(cpath);
      out.write("/style/css_common1.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("    <style>\r\n");
      out.write("    div{font-size:12px;}\r\n");
      out.write("\t*{vertical-align:middle;}\r\n");
      out.write("    </style>\r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("\t<script type=\"text/javascript\" src=\"");
      out.print(cpath);
      out.write("/js/tree.js\"></script>\r\n");
      out.write("\t<script language=\"javascript\">\r\n");
      out.write("\t<!--\r\n");
      out.write("\tvar Tree = new Array;\r\n");
      out.write("\tvar a;\r\n");
      out.write("\t//Tree[0]  = \"1|0|班组|javascript:checked('1')\";\r\n");
      out.write("\tfunction set(){\r\n");
      out.write("\t\t");

			List mylist=(List)request.getAttribute("ktlist");
			if(mylist!=null&&mylist.size()>0){
				for(int i=0;i<mylist.size();i++){
					KmTree kt=(KmTree)mylist.get(i);
		
      out.write("\r\n");
      out.write("\t\t\tTree[");
      out.print(i);
      out.write(']');
      out.write('=');
      out.write('"');
      out.print(kt.getTreeId());
      out.write('|');
      out.print(kt.getParentId());
      out.write('|');
      out.print(kt.getName());
      out.write("|javascript:checked('");
      out.print(kt.getTreeId());
      out.write("')\";\r\n");
      out.write("\t\t");

				}
			}
		
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction checked(id){\r\n");
      out.write("\t\tvar para =document.getElementById(\"method\").value;\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif(para=='dir'){\t\r\n");
      out.write("\t\t\twindow.parent.frames['kmtreeinfo'].refresh(id);\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(para=='view'){\r\n");
      out.write("\t\t\twindow.parent.frames['nodeview'].refresh(id);\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\t-->\r\n");
      out.write("\t</script>  \r\n");
      out.write("  </head>\r\n");
      out.write("  \r\n");
      out.write("<body style=\"background-color:#FFFFFF;overflow:auto\">\r\n");
      out.write(" \t<form name=\"form\"> \r\n");
      out.write("    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"title\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td>知识库目录</td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table>\r\n");
      out.write("\t<input type=\"hidden\"  name=\"method\" value=\"");
      if (_jspx_meth_s_005fproperty_005f0(_jspx_page_context))
        return;
      out.write("\"/>\r\n");
      out.write("\t<div style=\"height: 100%\">\r\n");
      out.write("\t\t<table>\r\n");
      out.write("\t    \t<script type=\"text/javascript\">\r\n");
      out.write("\t\t\t\t<!--\r\n");
      out.write("\t\t\t\t\tif(Tree!=null){\r\n");
      out.write("\t\t\t\t\t\tset();\r\n");
      out.write("\t\t\t\t\t\tcreateTree(Tree);\r\n");
      out.write("\t\t\t\t\t\toc(1,1);\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t-->\r\n");
      out.write("\t\t\t</script>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t</div>\t\t\t\r\n");
      out.write(" \t</form>\t\t\r\n");
      out.write("</body>\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);
    }
  }

  private boolean _jspx_meth_s_005fproperty_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(null);
    _jspx_th_s_005fproperty_005f0.setValue("method");
    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 + -