A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how to read and list files in Jsp List
Joined: Sep 23, 2003
Oct 20, 2005 02:12:00
how can I read and list files in my Jsp List, from my C:/Folder/
anybody can help
Joined: Aug 15, 2004
Oct 20, 2005 05:05:00
I think, you mean you want to list down all the file names, of a particular directory, in your
If yes then its simple just get all the names of files present in particular directory, place them in a collection and then iterate that collection object in order to show the list.
Where is the problem?
Joined: Dec 11, 2004
Oct 20, 2005 05:25:00
Use the java.util.File class for reading your directory.
Then, follow Adeel's directions.
How to ask a question...
Simple Servlet Examples
Author and ninkuma
Joined: Jan 10, 2002
Oct 20, 2005 07:58:00
Of course you realize that you only have access to the server's file system. correct?
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: how to read and list files in Jsp List
Reading a textarea as a stream
Printing word doucment using JSP
Reading an external list of files from ANT
how to read file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013