This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to read name of the folders

 
sangeetha balasubramaniam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
Sangeetha.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java provides the java.io.File 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.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic