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

📄 getxml.jsp

📁 Web开发的基本框架
💻 JSP
字号:
<%@ taglib uri="/tags/web-tree" prefix="html" %>
<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*"%>
<%@ page import="org.loushang.web.taglib.util.*"%>
<%
        String parentId = request.getParameter("PARANTID");
        ArrayList list = new ArrayList();
        HashMap hash;
        if (parentId.equals("1")){
			hash = new HashMap();
			hash.put("id", "11");
			hash.put("property", "ASP,asp+互助");
			list.add(hash);
			hash = new HashMap();
			hash.put("id", "12");
			hash.put("property", "我订阅的版");
			list.add(hash);
			hash = new HashMap();
			hash.put("id", "13");
			hash.put("property", "爱*贺卡");
			list.add(hash);		
		}
		
		if (parentId.equals("2")){		
		hash = new HashMap();
		hash.put("id", "21");
		hash.put("property", "心之小雨");
		list.add(hash);
		hash = new HashMap();
		hash.put("id", "22");
		hash.put("property", "永远相册");
		list.add(hash);
		hash = new HashMap();
		hash.put("id", "23");
		hash.put("property", "心之小雨");
		list.add(hash);
		}

	    if (parentId.equals("3")){
		hash = new HashMap();
		hash.put("id", "31");
		hash.put("property", "阿猫阿狗");
		list.add(hash);
		hash = new HashMap();
		hash.put("id", "32");
		hash.put("code", "花花草草");
		hash.put("property", "花花草草");
		list.add(hash);
		}
		request.setAttribute(Global.getString("tree.data"),list);       
%>
<html:xml id="id" property="property" type="type" value="id#property">
</html:xml>

⌨️ 快捷键说明

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