This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes How to read name of the folders Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "How to read name of the folders" Watch "How to read name of the folders" New topic

How to read name of the folders

sangeetha balasubramaniam

Joined: May 16, 2005
Posts: 23
I want to create a JSP with dropdown containing names of the sub folders which in present inside the folder.

Say a Folder A, has A1, A2, A3 and want to display A1, A2 and A3 in the dropdown, how to do this.pls help

Thanks in Advance
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13000
Java provides the class for getting at details of the filing system such as directory names. Creating the dropdown is a matter of getting the HTML correct - I suggest you make a mock-up in pure HTML and then figure out how to populate it with real data in a JSP.
I agree. Here's the link:
subject: How to read name of the folders
It's not a secret anymore!