但有问题,在输出页面无任何内容。可是在同目录下的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页面:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>