在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.