简体   繁体   中英

creating a Directory tree structure on a JSP

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

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.

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

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

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.

Not out the box. You have to create it yourself or to head to a 3rd party taglib or framework.

Several examples:

If you are willing to use a web application framework, you may also consider the Tree-component from Vaadin . See the Sampler for a Tree example, including source code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM