帮忙构造树
从数据库得到list后,根据ParentsID,id怎样递归构建一个通用树形结构供JSP中递归显示!是用DefaultMutableTreeNode 还是用treeNode啊
是写普通的JAVABEAN,我不知道怎么写,请帮助下。
VO属性
public static final long ROOT_ID = -1;
private static final String ICON = "/cmdb/images/domain.gif ";
private long id = -1;
private long parentid = -1;
private long serialid = -1;
private String name = " ";
private String description = " ";
private String ipsegment = " ";
private String memo = " ";
------解决方案--------------------关注
建议上网络上下载一个