dTree

Frame

<FRAMESET id=topFrameSet border=0 frameSpacing=0 rows=40,*  frameBorder=0>
	<FRAME name=topframe1 src="deptTop.jsp" noResize scrolling=no target="mainFrameSet">
	<FRAMESET id=mainDept name="mainDept" border=0 frameSpacing=0 frameBorder=1 cols=180,*>
		<FRAME name="left1" noResize border=0 
               src="<%=request.getContextPath()%>/DeptMgr.do?method=tree"
               frameBorder=0  scrolling=no DESIGNTIMEDRAGDROP="8">
		<FRAME name=right1 src="<%=request.getContextPath()%>/DeptMgr.do?method=listDept" frameBorder=0>
    
		<NOFRAMES>
    		<body>
    			<p>This page uses frames, but your browser doesn't support them.</p>
    		</body>
		</NOFRAMES>
	</FRAMESET>
</FRAMESET>


dTree
          <table height="100%" cellspacing="0" cellpadding="0" border="0" align="right" width="98%">
            <tbody>
              <tr>
                <td valign="top">
                <div style="overflow: auto; width: 180px; height: 100%;" id="tree" >
                  <script type="text/javascript">
  d = new dTree("d");
  d.add(-1,-2,"");
  d.add(0,-1,'<bean:write name="DeptMgrForm" property="entInfoDVO.entName"/>','<%=request.getContextPath()%>/DeptMgr.do?method=listDept&searchModel.deptID=0)','','right1');
  <logic:notEmpty name="DeptMgrForm" property="deptList">
    <logic:iterate id="dept" name="DeptMgrForm" property="deptList">
      d.add('<bean:write name="dept" property="deptID"/>','<bean:write name="dept" property="fatherDeptID"/>','<bean:write name="dept" property="deptName"/>','<%=request.getContextPath()%>/DeptMgr.do?method=listDept&searchModel.deptID=<bean:write name="dept" property="deptID"/>','','right1');
    </logic:iterate>
  </logic:notEmpty>
  document.write(d);
                  </script>

                </div>
                </td>
              </tr>
            </tbody>
          </table>

你可能感兴趣的:(java)