在JSP上创建目录树结构 [英] creating a Directory tree structure on a JSP

查看:52
本文介绍了在JSP上创建目录树结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近遇到了Java DefaultMutableTreeNode类.我想知道是否有任何类似的类/技术可用于Servlet/JSP.

I recently came across the Java DefaultMutableTreeNode class. I was wondering if there is any similar classes/technology available for Servlets/JSPs.

我正在开发一个Web应用程序,其数据库表存储了各种文件的绝对路径名,我的servlet应该从表中读取路径名并将其显示为目录树结构.

I am working on a web application for which a database table stores absolute path name for various files, my servlet is supposed to read the path names from the table and display them as a directory tree structure.

非常感谢.任何建议将不胜感激.

Thanks so much in advance. Any advise will be appreciated.

推荐答案

您将使用jQuery插件将路径显示为树吗?

Would you use a jQuery plugin to display your paths as a tree?

https://www.abeautifulsite.net/jquery-file-tree

jQuery File Tree是jQuery的可配置AJAX文件浏览器插件.您可以使用最少一行JavaScript代码来创建自定义的,完全交互的文件树.

jQuery File Tree is a configurable, AJAX file browser plugin for jQuery. You can create a customized, fully-interactive file tree with as little as one line of JavaScript code.

这篇关于在JSP上创建目录树结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆