您好,欢迎访问一九零五行业门户网

jsp结合struts2使用dtree的一个问题_html/css_WEB-ITnose

想用dtree做树状的结构图
但有问题,在输出页面无任何内容。可是在同目录下的example01.html(dtree提供的那个演示页面)显示正常,下面的jsp页面代码是从example01.html改动过来的,请大家注重看下struts2的那个标签里的代码。

数据库中:
dept_id     dept_name      parentdept_id      dept_description
1    1          0           111
2    1.1          1           11111
3    1.2      1           111111
4    1.1.1          2           222222
5    1.2.1     3           3333333
hql语句:  from com.zhang.bean.dept
jsp页面:
string path = request.getcontextpath();
string basepath = request.getscheme()+://+request.getservername()+:+request.getserverport()+path+/;
%>
nbsp;html public -//w3c//dtd xhtml 1.0 strict//en http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd>
destroydrop » javascripts » tree
destroydrop » javascripts » tree
example
回复讨论(解决方案) 自己已经调试出,如有人同样对这个问题有疑问,可联系。
朋友遇到跟你一样的问题怎么jsp页面树中加载后台list中树的数据呢,好像不行的
怎么弄的 跪求啊!!!
我的 邮箱:446764559@qq.com
script标记里面不能用struts2 的标记啊 我也遇到这中问题了 不知道该怎么办。想问问就是要用jsp技术实现的话用什么该怎么循环便利action 中传到页面的list呢?
(用freemarker中的可以)
我 邮箱:280276716@qq.com 如果您有解决办法请赐教赐教!不胜感激!
其它类似信息

推荐信息