divTreeService.jsp 870 B

1234567891011121314151617181920
  1. <%@ page contentType="text/html; charset=gb2312" language="java"%>
  2. <%@ page language="java" import="model.setup.menutree.MenuTree" %>
  3. <%
  4. String nodeID = null;
  5. String buildSelf = "false";
  6. String isPublishStr = request.getParameter("isPublish") == null ? "false" : request.getParameter("isPublish");
  7. //boolean ispublish = Boolean.valueOf(isPublishStr);
  8. boolean ispublish = isPublishStr.equals("true")?true:false;
  9. if(request.getParameter("nodeID")!=null){
  10. nodeID=request.getParameter("nodeID");
  11. nodeID = nodeID.equals("") ? null:nodeID;
  12. buildSelf=request.getParameter("buildSelf");
  13. }
  14. //System.out.println("nodeID = " + nodeID );
  15. //System.out.println("buildSelf = "+buildSelf);
  16. //System.out.println("ispublish = "+ispublish);
  17. MenuTree myTree = new MenuTree(request.getContextPath(),"confCollection",ispublish);
  18. myTree.buildTree(out,nodeID,buildSelf);
  19. %>