This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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

Win a copy of Building Microservices this week in the Design forum!
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: 63232

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
wood burning stoves
subject: User Selection of File from Server
It's not a secret anymore!