• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Directory Chooser

 
John Eric Hamacher
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for a directory chooser for my JSP. The control would simply allow the user to select the name of a directory (not a file) and have that name be available to pass to a servlet. Note I just want the name of a directory, so there should be no security issues, right?

Does anybody know of a Javascript library that could accomplish this? Thanks.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript has no access to the client file system, so there can be no library that does this. The closest you can get is the file input control which will let you choose a file, but not a folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic