如题,用hibernate做数据库的,有谁做过这样tree吗,我第一次做,action中的json应该如何拼啊?
最好能有个例子,万分感谢!!!
------解决方案--------------------
页面:
- HTML code
<html> <head> <jsp:include page="header.jsp" /> <script type="text/javascript"> Ext.onReady(function(){ var loader = new Ext.tree.TreeLoader({ dataUrl : 'findTeam!findTeam.action' }); var root = new Ext.tree.AsyncTreeNode({ id : '-1', text : '根节点', checked:false }); var tree = new Ext.tree.TreePanel({ loader : loader, root : root, frame:true }); tree.render('tree'); tree.getRootNode().expand(); }); </script> </head> <body> <div id = 'tree'></div> </body> </html>