This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Files To Display in Jsp As TreeView" Watch "Files To Display in Jsp As TreeView" New topic
Author

Files To Display in Jsp As TreeView

venu v gopal v
Greenhorn

Joined: Apr 26, 2010
Posts: 6
Hi,

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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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.
 
jQuery in Action, 2nd edition
 
subject: Files To Display in Jsp As TreeView
 
Similar Threads
Can a servlet include jsp files?
retrive files in a directory
Using Eclipse
senRedirect how to diferntiate in the different jsp file?
a decade of "keep the code out of the jsp"