Tree.jsp
上传用户:huijianzhu
上传日期:2009-11-25
资源大小:9825k
文件大小:1k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page language="java" pageEncoding="GB2312" contentType="text/html;charset=GB2312" %>
  2. <%@ include file="/common/taglibs.jsp"%>
  3. <?xml version="1.0" encoding="GB2312"?>
  4. <%
  5. String TreeID = "0" ;
  6. String PageUrl = "/gov/sys/plate/searchPlateData.html" ;
  7. TreeID = request.getParameter("FolderID") ;
  8. try{
  9. if (TreeID.equals("null") || TreeID.equals("") || TreeID.length() == 0 ){
  10. TreeID = "0" ;
  11. }
  12. }catch(Exception e){
  13. System.out.println("错误");
  14. TreeID = "0" ;
  15. }
  16. request.setAttribute("TreeID",TreeID) ;
  17. %><Tree TreeId="Folder<%=TreeID %>" NodeXmlSrc="<%=PageUrl %>?FolderID=<%=TreeID %>"><c:forEach var="plate" items="${plateList}" ><c:if test="${plate.parentid == TreeID }"><TreeNode NodeId='Folder<c:out value="${plate.id}"/>' Href='<c:url value="/sys/plate/searchPlate.html"/>?method=searchPlatesByConditions&amp;status=1&amp;parentid=<c:out value="${plate.id}"/>' Title='<c:out value="${plate.name}"/>' NodeXmlSrc='<%=PageUrl%>?FolderID=<c:out value="${plate.id}"/>'></TreeNode></c:if></c:forEach></Tree>