Dtree tree-shaped structure, very convenient, very suitable.
Download Dtree.zip Package Please go to the address below to download
http://jinchun1223.javaeye.com/admin/blogs/421817
<%@ page language= "java" import= "java.util.*" pageencoding= "GBK"%>
<%
String path = Request.getcontextpath ();
String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";
%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
<base href= "<%=basePath%>" >
<title> Tree Menu </title>
<meta http-equiv= "Pragma" content= "No-cache" >
<meta http-equiv= "Cache-control" content= "No-cache" >
<meta http-equiv= "Expires" content= "0" >
<meta http-equiv= "keywords" content= "keyword1,keyword2,keyword3" >
<meta http-equiv= "description" content= "This are my page" >
<link rel= "stylesheet" type= "Text/css" href= "Css/dtree.css" >
<script type= "Text/javascript" src= "Js/dtree.js" ></script>
<body>
<div class= "Dtree" >
<p><a href= "Javascript:d.openall ();" > Expand </a> | <a href= "Javascript:d.closeall ();" > Shrink </a></p>
<script type= "Text/javascript" >
D = new Dtree (' d ');
D.add (0,-1, ' Welcome to login ');
D.add (1, 0, ' first part of Project ');
D.add (2,1, ' information added ', ' index.jsp ');
D.add (3,1, ' Information inquiry ', ' index.jsp ');
D.add (4,1, ' Information dispatch ', ' index.jsp ');
D.add (5,1, ' information graph ', ' index.jsp ');
D.add (6,0, ' second part of the project ');
D.add (7,6, ' information added ', ' index.jsp ');
D.add (8,6, ' Information inquiry ', ' index.jsp ');
D.add (9,6, ' Information inquiry ');
D.add (10,6, ' Information inquiry ');
D.add (11,0, ' third part of the project ');
D.add (12,11, ' information added ', ' index.jsp ');
D.add (13,11, ' Information inquiry ', ' index.jsp ');
D.add (14,11, ' Information inquiry ', ' index.jsp ');
D.add (15,11, ' Information inquiry ');
D.add (16,0, ' Inventory management of goods ');
D.add (17,16, ' warehousing management ');
D.add (18,17, ' inbound registration ', ' index.jsp ');
D.add (19,17, ' Inbound query ', ' index.jsp ');
D.add (20,16, ' out of Library Management ');
D.add (21,20, ' out of library registration ', ' index.jsp ');
D.add (22,20, ' out of the Library query ', ' index.jsp ');
D.add (23,0, ' System Application Management ');
D.add (24,23, ' departmental Management ', ' index.jsp ');
D.add (25,23, ' role management ', ' index.jsp ');
D.add (26,23, ' user Management ');
D.add (27,26, ' user add ', ' index.jsp ');
D.add (28,26, ' User inquiries ', ' index.jsp ');
D.add (29,23, ' Operation Log ');
D.add (30,0, ' system use help ');
D.add (31,30, ' use instructions ');
D.add (32,30, ' System homepage ');
D.add (33,0, ' safe exit system ', ' index.jsp ', ', ' _parent ');
document.write (d);
</script>
</div>
</body>