• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can JSP handle this project?  RSS feed

 
Julia Irving
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am fairly new to both Java and JSP, but think I have a project that could easily be handled with JSP. I need to create a webpage that opens a folder on a share drive (that's on a separate server) and provides links to all of the files inside the folder. I've created (with the help of some on-line help) the following code to try to simply list the files. So far, when tested, there are not compilation errors but the server tries to run some templates on a local directory. I fear that I may be missing something important or going about this the wrong way. Please let me know if you have any thoughts or suggestions. Thanks in Advance!

Thanks again,
Julia
 
Simon Harvey
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Julia,
I think that this general problem is possible, but I'm a bit concerened about doing it in JSP. I know servlets can look at files on the local machine, but I dont know if they can look at files on a remote file system because that could be a profound security risk.
I would look at the problem differently. I would first and foremost, setup the directory as an ftp directory, and then have pages link to the ftp address. That would be very easy.
I would really recomend that option. Your other option is somehow involving a database, but that would be a big job
Good luck
Simon
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before making any comments, we need to know if the files you are talking about are on the server or client.
bear
 
Julia Irving
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The files are not on the client side; they are on a server that is on the same network as the webserver. Hope that helps.
[ July 18, 2003: Message edited by: Julia Irving ]
 
Scott Duncan
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firewall issues aside, you can list the file names in this way but will be useless if the client machines cannot communicate with the server where the files are located at. I can only assume they can and this is not an issue.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!