• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Selecting directory using input=file

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone please let me know how can i select a directory, so that i can get a directory path using input=file.

Currently it is allowing only to select files. But my requirement is only to select a directory, where in i will be putting some files to that directory using my app.

Thanks and regards,
Ravi
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't think it is possible.

Eric
 
Ravikanth Lolur
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,

Thanks for your reply. Do you know any other alternative for this. I am using struts jsp's as my view.

If anyone is having an idea about any third party tag lib's or so to do this, kinldy let me know.

Thanks & Regards,
Ravi
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I take it that Eric's reply above is correct.

I guess I can understand why a "browse for directory" feature is not real helpful for most web pages since the browser and the application server are generally running on different computers so the directory path would not be real useful. I have an unusual case where the browser and application server are on the same computer. I only need to support current release of IE (I cannot not use an ActiveX controls).

Let me know if there is a way to implement this. Otherwise I guess I will force the user to type (or cut and paste) the directory path into a text box.

- Brent
 
I am displeased. You are no longer allowed to read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!