File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes User Selection of File from Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "User Selection of File from Server" Watch "User Selection of File from Server" New topic

User Selection of File from Server

David Cowan

Joined: May 01, 2009
Posts: 17

I have an application that allows users to upload csv files to the server (that bit works fine ) and I have a servlet that happily loads the csv data into the database. However, their could be mulitple csv files held on the server at different times and I need to be able to display a list of all the files on the server (only in the upload directory of course) to the user and let them select the file they wish to run through the upload program. I have spent hours pouring through my reference books and Google and I keep drawing blanks . Can anyone please (pretty please) point me in the right direction?

Thanks in Advance
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Java File I/O will easily allow you to discover what files are in any folder.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: User Selection of File from Server
It's not a secret anymore!