Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

create 'Browse Directory" field  RSS feed

 
fei long
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I want to create a field which allows you to browse directory in my JSP page. But I couldn't find any information on web. Is this possible in JSP? or only could be done in Applet? Any suggestion or code snippet would be appreciated.
 
Clifford Adams
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try here:

jspin - file manipulation

this one specifically: JSP Browser
 
fei long
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Clifford. Maybe I wasn't describing correctly. What I want is to 'specify a directory' not browse and pick up a file. It's like many software install program does when asking you to specify directory you want to install.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are looking for a means to browse the client file system, you cannot do this without a signed applet or other trusted client-side control.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes you can, but it's a dirty little trick and the data will never get back to the server

Create an iframe with style set so it looks like it's just another part of the page and set the URI to file:\\c:\
Fools a lot of inexperienced Windows users. I'd guess something like file:\\~ would do the same for *nixies but I never tried it.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!