⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getxml1.jsp

📁 Web开发的基本框架
💻 JSP
字号:
<%@ taglib uri="/tags/web-seltree" prefix="tree" %>
<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*"%>
<%@ page import="org.loushang.web.taglib.util.*"%>
<%
        String nodeId = request.getParameter("nodeId");

        ArrayList list = new ArrayList();
        if (nodeId.equals("1")){
          HashMap hash = new HashMap();
          hash.put("nodeId", "11");
          hash.put("CheckData","11");          
          hash.put("title","北京市");
          hash.put("href","http://10.13.1.11");
          hash.put("target","_blank"); 
          hash.put("toolTip","提示:北京市");
          list.add(hash);
        }
        if (nodeId.equals("2")){
          HashMap hash = new HashMap();
          hash.put("nodeId", "21");         
          hash.put("nodeXmlSrc", "");              
          hash.put("title","济南");
          hash.put("toolTip","提示:济南");
          list.add(hash);
          hash = new HashMap();
          hash.put("nodeId", "22");
          hash.put("CheckData","22");
          hash.put("title","青岛");  
          hash.put("toolTip","提示:青岛");
          hash.put("href","http://10.13.1.11");
          hash.put("target","_blank");
          list.add(hash);
          hash = new HashMap();
          hash.put("nodeId", "23");
          hash.put("CheckData","23");
          hash.put("title","烟台");  
          hash.put("toolTip","提示:烟台");
          hash.put("href","http://10.13.1.11");
          hash.put("target","_blank");
          list.add(hash);
          hash = new HashMap();
          hash.put("nodeId", "24");
          hash.put("CheckData","24");
          hash.put("title","泰安");  
          hash.put("toolTip","提示:泰安");
          hash.put("href","http://10.13.1.11");
          hash.put("target","_blank");
          list.add(hash);
        }
         if (nodeId.equals("21")){
          HashMap hash = new HashMap();
          hash.put("nodeId", "21");
          hash.put("CheckData","21");                
          hash.put("title","山大路");
          hash.put("toolTip","提示:山大路");
          hash.put("href","http://10.13.1.11");
          hash.put("target","_blank");
          list.add(hash);
        }
        if (nodeId.equals("3")){
          
          HashMap hash = new HashMap();
          hash.put("nodeId", "31");	 
          hash.put("CheckData","31");
          hash.put("nodeXmlSrc", "");
          hash.put("title","大连");
          hash.put("toolTip","提示:大连");
          list.add(hash);
          hash = new HashMap();
          hash.put("nodeId", "32");
          hash.put("CheckData","32");          
          hash.put("href","http://10.13.1.11");
          hash.put("target","_blank");
          hash.put("title","沈阳");
          hash.put("toolTip","提示:沈阳");
          list.add(hash);
        }
        
        if (nodeId.equals("31")){
          HashMap hash = new HashMap();
          hash.put("nodeId", "311");
          hash.put("CheckData","311");                
          hash.put("title","火炬路");          
          hash.put("href","http://10.13.1.11");
          hash.put("target","_blank");
          hash.put("toolTip","提示:火炬路");
          list.add(hash);
        }  
		request.setAttribute("tree",list);
%>
<tree:selXmlNode title="title" nodeId="nodeId" toolTip="toolTip" collection="tree" nodeXmlSrc="nodeXmlSrc"  type="href" href="href" target="target">
</tree:selXmlNode>







⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -