Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

client files on a JSP  RSS feed

 
Noreen Masterson
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks
i wote my jsp to have a listbox which would display a list of files from a set directory
I am using this in conjunction with a WebSphere server. so what i want to do is be able to see the files on the client machine and load that file onto the browser. <it doesnt really have any server functionality associated with it>
This all worked fine on my local dev environment but once i put it on the server i was no longer able to see the set directory on my local machine.
is there a way to do this that i am missing?
many thanx as always!!!
Noreen
 
Mark Stein
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the java in JSP is processed on the server, before it hits the client's machine. So you can't display the file that way.
You could use an HTML form file object... the user would still have to click the browse button to see the list of files.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!