我想通过数据库读入节点数据,我用的是struts2,jsonlib
jsp
$(function () { $("#demo").tree({ data : { type : "json", url : "loadAction.action" }, ui :{theme_name : "classic"} }); });
能取到数据说明问题在你的jsTree的配置上。看看jstree的文档,是否按照了它要求的JSON结构来生成的json?
看看文章
http://www.iteye.com/topic/399428