[英]creating a Directory tree structure on a JSP
I recently came across the Java DefaultMutableTreeNode class. 我最近遇到了Java DefaultMutableTreeNode类。 I was wondering if there is any similar classes/technology available for Servlets/JSPs. 我想知道是否有任何类似的类/技术可用于Servlet / JSP。
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. 我正在一个Web应用程序上工作,数据库表为其存储了各种文件的绝对路径名,我的servlet应该从表中读取路径名并将其显示为目录树结构。
Thanks so much in advance. 非常感谢。 Any advise will be appreciated. 任何建议将不胜感激。
Would you use a jQuery plugin to display your paths as a tree? 您会使用jQuery插件将路径显示为树吗?
https://www.abeautifulsite.net/jquery-file-tree https://www.abeautifulsite.net/jquery-file-tree
jQuery File Tree is a configurable, AJAX file browser plugin for jQuery. jQuery File Tree是jQuery的可配置AJAX文件浏览器插件。 You can create a customized, fully-interactive file tree with as little as one line of JavaScript code. 您可以使用最少一行JavaScript代码来创建自定义的,完全交互的文件树。
Not out the box. 没有开箱即用。 You have to create it yourself or to head to a 3rd party taglib or framework. 您必须自己创建它或前往第三方标签库或框架。
Several examples: 几个例子:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.