好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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+"/";
%>



Destroydrop » Javascripts » Tree





Destroydrop » Javascripts » Tree


Example





d = new dTree('d');
d.add(0,-1,'根');


d.add( , ,' ','index.jsp');


document.write(d);

//-->

查看更多关于jsp结合struts2使用dtree的一个问题_html/css_WEB-ITnose的详细内容...

  阅读:33次