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

WBOY
Release: 2016-06-24 12:11:24
Original
914 people have browsed it

想用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 如果您有解决办法请赐教赐教!不胜感激!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!