File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Files To Display in Jsp As TreeView Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Files To Display in Jsp As TreeView" Watch "Files To Display in Jsp As TreeView" New topic

Files To Display in Jsp As TreeView

venu v gopal v

Joined: Apr 26, 2010
Posts: 6

I want to display the files which are in a particular folder on my jsp in a Tree structure. I am able to get the file names and paths.
From here i don't know how to proceed to do this.

can any one help me on this.

Thanks in advance.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19857

Since you're asking about the display of JSP, you should know that you are asking about HTML. That's because a JSP is a tool for generating HTML.

So find the answer to how to get a tree display in HTML, and then write a JSP which generates that HTML. And remember that you can use Javascript in your HTML.
I agree. Here's the link:
subject: Files To Display in Jsp As TreeView
jQuery in Action, 3rd edition