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

File Open Dialog box

 
biny panackal
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Can i create a file chooser dialog box using jsp if anybody know the answer please help me. Is it possible using js?

Hopping a fast replay

binypanackal@gmail.com

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HTML file form element includes a button that will open up a file chooser. Is that what you are looking for?
 
biny panackal
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,

Thank you for your response.

But the problem is i want to load only files in my server. or i want to specify a path or directory from where i can pick an image
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you saying that you want the user to be able to browse files on the server?
 
biny panackal
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya

but the user is the administrator itself.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Javascript (JS) has no ability to read anything on the server.

If you want to the user to be able to browse the server with a browser, you'll need to write some server side code (see java.io.File) that reads the contents of your file system and returns them in a form that can be presented in a web page.

You can certainly use JS to open a new window that calls these server side resources. With Ajax, you could also make requests to these server side resources and draw them directly to a pre-drawn page but there is nothing built into either JS or JSP for browsing a server's file system.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic