• Post Reply Bookmark Topic Watch Topic
  • New Topic

Directory chooser

 
ankit Khurana
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..i am trying to make a jsp page which could choose a directory from server machine and i want to transfer the directory name selected by client to my servlet.......i know of tag called input="file" ,but please suggest me something with which i can make my directory chosser in jsp page
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To approach this problem logically, first try to make a plain HTML page with a form that does what you want.

Watch out for security problems - you dont want the user to be able to see just any directory on the server.

Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing in HTML that will show server-side information. You'll need to do it yourself.

What is it you're actually trying to do? Perhaps suggestions could be made if we had more information.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the API for the java.io.File class. It is the class used for reading files and directories in Java.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!