📄 index_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
public final class index_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=GBK");
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');
out.write('\n');
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<!DOCTYPE <a href=\"http://www.qqread.com/keywords/html.html\" target=\"_blank\">HTML</a> PUBLIC \"-//W3C//DTD HTML 4.0\r\n");
out.write("Transitional//EN\">\r\n");
out.write("<HTML>\r\n");
out.write("<HEAD>\r\n");
out.write("<TITLE> DSTree </TITLE>\r\n");
out.write("<META NAME=\"Author\" CONTENT=\"sTarsjz@hotmail.com\" >\r\n");
out.write("<style>\r\n");
out.write("body,td{font:12px verdana}\r\n");
out.write("#treeBox{background-color:#fffffa;}\r\n");
out.write("#treeBox .ec{margin:0 5 0 5;}\r\n");
out.write("#treeBox .hasItems{font-weight:bold;height:20px;padding:3 6 0 6;margin:2px;cursor:hand;color:#555555;border:1px solid\r\n");
out.write("#fffffa;}\r\n");
out.write("#treeBox .Items{height:20px;padding:3 6 0 6;margin:1px;cursor:hand;color:#555555;border:1px solid #fffffa;}\r\n");
out.write("</style>\r\n");
out.write("<base href=\"http://vip.5d.cn/star/dstree/\" />\r\n");
out.write("<script>\r\n");
out.write("//code by star 20003-4-7\r\n");
out.write("var HC = \"color:#990000;border:1px solid #cccccc\";\r\n");
out.write("var SC = \"background-color:#efefef;border:1px solid #cccccc;color:#000000;\";\r\n");
out.write("var IO = null;\r\n");
out.write("function initTree(){\r\n");
out.write(" var rootn = document.all.menuXML.documentElement;\r\n");
out.write(" var sd = 0;\r\n");
out.write(" document.onselectstart = function(){return false;}\r\n");
out.write(" document.all.treeBox.appendChild(createTree(rootn,sd));\r\n");
out.write("}\r\n");
out.write("function createTree(thisn,sd){\r\n");
out.write(" var nodeObj = document.createElement(\"span\");\r\n");
out.write(" var upobj = document.createElement(\"span\");\r\n");
out.write(" with(upobj){\r\n");
out.write(" style.marginLeft = sd*10;\r\n");
out.write(" className = thisn.hasChildNodes()?\"hasItems\":\"Items\";\r\n");
out.write(" innerHTML = \"<img src=expand.gif class=ec>\" + thisn.getAttribute(\"text\") +\"\";\r\n");
out.write(" \r\n");
out.write(" onmousedown = function(){\r\n");
out.write(" if(event.button != 1) return;\r\n");
out.write(" if(this.getAttribute(\"cn\")){\r\n");
out.write(" this.setAttribute(\"open\",!this.getAttribute(\"open\"));\r\n");
out.write(" this.cn.style.display = this.getAttribute(\"open\")?\"inline\":\"none\";\r\n");
out.write(" this.all.tags(\"img\")[0].src = this.getAttribute(\"open\")?\"expand.gif\":\"contract.gif\";\r\n");
out.write(" }\r\n");
out.write(" if(IO){\r\n");
out.write(" IO.runtimeStyle.cssText = \"\";\r\n");
out.write(" IO.setAttribute(\"selected\",false);\r\n");
out.write(" }\r\n");
out.write(" IO = this;\r\n");
out.write(" this.setAttribute(\"selected\",true);\r\n");
out.write(" this.runtimeStyle.cssText = SC;\r\n");
out.write(" }\r\n");
out.write(" onmouseover = function(){\r\n");
out.write(" if(this.getAttribute(\"selected\"))return;\r\n");
out.write(" this.runtimeStyle.cssText = HC;\r\n");
out.write(" }\r\n");
out.write(" onmouseout = function(){\r\n");
out.write(" if(this.getAttribute(\"selected\"))return;\r\n");
out.write(" this.runtimeStyle.cssText = \"\";\r\n");
out.write(" }\r\n");
out.write(" oncontextmenu = contextMenuHandle;\r\n");
out.write(" onclick = clickHandle;\r\n");
out.write(" }\r\n");
out.write(" if(thisn.getAttribute(\"treeId\") != null){\r\n");
out.write(" upobj.setAttribute(\"treeId\",thisn.getAttribute(\"treeId\"));\r\n");
out.write(" }\r\n");
out.write(" if(thisn.getAttribute(\"href\") != null){\r\n");
out.write(" upobj.setAttribute(\"href\",thisn.getAttribute(\"href\"));\r\n");
out.write(" }\r\n");
out.write(" if(thisn.getAttribute(\"target\") != null){\r\n");
out.write(" upobj.setAttribute(\"target\",thisn.getAttribute(\"target\"));\r\n");
out.write(" }\r\n");
out.write(" nodeObj.appendChild(upobj);\r\n");
out.write(" nodeObj.insertAdjacentHTML(\"beforeEnd\",\"<br>\")\r\n");
out.write(" if(thisn.hasChildNodes()){\r\n");
out.write(" var i;\r\n");
out.write(" var nodes = thisn.childNodes;\r\n");
out.write(" var cn = document.createElement(\"span\");\r\n");
out.write(" upobj.setAttribute(\"cn\",cn);\r\n");
out.write(" if(thisn.getAttribute(\"open\") != null){\r\n");
out.write(" upobj.setAttribute(\"open\",(thisn.getAttribute(\"open\")==\"true\"));\r\n");
out.write(" upobj.getAttribute(\"cn\").style.display = upobj.getAttribute(\"open\")?\"inline\":\"none\";\r\n");
out.write(" if( !upobj.getAttribute(\"open\"))upobj.all.tags(\"img\")[0].src =\"contract.gif\";\r\n");
out.write(" }\r\n");
out.write(" \r\n");
out.write(" for(i=0;i<nodes.length;cn.appendChild(createTree(nodes[i++],sd+1)));\r\n");
out.write(" nodeObj.appendChild(cn);\r\n");
out.write(" }\r\n");
out.write(" else{\r\n");
out.write(" upobj.all.tags(\"img\")[0].src =\"endnode.gif\";\r\n");
out.write(" }\r\n");
out.write(" return nodeObj;\r\n");
out.write("}\r\n");
out.write("window.onload = initTree;\r\n");
out.write("</script>\r\n");
out.write("<script>\r\n");
out.write("function clickHandle(){\r\n");
out.write(" // your code here\r\n");
out.write("}\r\n");
out.write("function contextMenuHandle(){\r\n");
out.write(" event.returnValue = false;\r\n");
out.write(" var treeId = this.getAttribute(\"treeId\");\r\n");
out.write(" // your code here\r\n");
out.write("}\r\n");
out.write("</script>\r\n");
out.write("</HEAD>\r\n");
out.write("<BODY>\r\n");
out.write("<xml id=menuXML>\r\n");
out.write("<?xml version=\"1.0\" encoding=\"GB2312\"?>\r\n");
out.write("<DSTreeRoot text=\"根节点\" open=\"true\" href=\"http://\" treeId=\"123\">\r\n");
out.write("\r\n");
out.write(" <DSTree text=\"技术论坛\" open=\"false\" treeId=\"\">\r\n");
out.write(" <DSTree text=\"5DMedia\" open=\"false\" href=\"http://\" target=\"box\" treeId=\"12\">\r\n");
out.write(" <DSTree text=\"网页编码\" href=\"http://\" target=\"box\" treeId=\"4353\" />\r\n");
out.write(" <DSTree text=\"手绘\" href=\"http://\" target=\"box\" treeId=\"543543\" />\r\n");
out.write(" <DSTree text=\"灌水\" href=\"http://\" target=\"box\" treeId=\"543543\" />\r\n");
out.write(" </DSTree>\r\n");
out.write(" <DSTree text=\"BlueIdea\" open=\"false\" href=\"http://\" target=\"box\" treeId=\"213\">\r\n");
out.write(" <DSTree text=\"DreamWeaver & JS\" href=\"http://\" target=\"box\" treeId=\"4353\" />\r\n");
out.write(" <DSTree text=\"FlashActionScript\" href=\"http://\" target=\"box\" treeId=\"543543\" />\r\n");
out.write(" </DSTree>\r\n");
out.write(" <DSTree text=\"CSDN\" open=\"false\" href=\"http://\" target=\"box\" treeId=\"432\">\r\n");
out.write(" <DSTree text=\"JS\" href=\"http://\" target=\"box\" treeId=\"4353\" />\r\n");
out.write(" <DSTree text=\"XML\" href=\"http://\" target=\"box\" treeId=\"543543\" />\r\n");
out.write(" </DSTree>\r\n");
out.write(" </DSTree>\r\n");
out.write(" <DSTree text=\"资源站点\" open=\"false\" treeId=\"\">\r\n");
out.write(" <DSTree text=\"素材屋\" href=\"http://\" target=\"box\" treeId=\"12\" />\r\n");
out.write(" <DSTree text=\"桌面城市\" open=\"false\" href=\"http://\" target=\"box\" treeId=\"213\">\r\n");
out.write(" <DSTree text=\"壁纸\" href=\"http://\" target=\"box\" treeId=\"4353\" />\r\n");
out.write(" <DSTree text=\"字体\" href=\"http://\" target=\"box\" treeId=\"543543\" />\r\n");
out.write(" </DSTree>\r\n");
out.write(" <DSTree text=\"MSDN\" open=\"false\" href=\"http://\" target=\"box\" treeId=\"432\">\r\n");
out.write(" <DSTree text=\"DHTML\" href=\"http://\" target=\"box\" treeId=\"4353\" />\r\n");
out.write(" <DSTree text=\"HTC\" href=\"http://\" target=\"box\" treeId=\"543543\" />\r\n");
out.write(" <DSTree text=\"XML\" href=\"\" target=\"box\" treeId=\"2312\" />\r\n");
out.write(" </DSTree>\r\n");
out.write(" </DSTree>\r\n");
out.write("</DSTreeRoot>\r\n");
out.write("</xml>\r\n");
out.write("<table style=\"position:absolute;left:100;top:100;\">\r\n");
out.write("<tr><td id=treeBox style=\"width:400px;height:200px;border:1px solid #cccccc;padding:5 3 3 5;\" valign=top></td></tr>\r\n");
out.write("<tr><td style=\"font:10px verdana;color:#999999\" align=right>by <font color=#660000>sTar</font><br> 2003-4-8</td></tr>\r\n");
out.write("</table>\r\n");
out.write("</BODY>\r\n");
out.write("</HTML>\r\n");
out.write("\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 + -