File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
retrive files in a directory
Joined: Jul 19, 2005
Jul 31, 2005 23:29:00
How can i retrive the files in a directory and display in the text box all the files using jsp.
bye and thanks
Joined: Mar 22, 2005
Aug 01, 2005 01:05:00
For getting the list of files, check out the java.io.File.listFiles method. For displaying them, you would iterate through the result of the listFiles call one by one, and write them inside a <textarea> tag.
Ping & DNS, my free Android app for network diagnostics
author and iconoclast
Joined: Jul 08, 2003
Aug 01, 2005 04:50:00
an advanced Java question. Moving to the
[Jess in Action]
Joined: Jun 10, 2004
Aug 02, 2005 15:32:00
You can embed HTML Browse tag in jsp file and what ever is in the text field get it using getParameter().
subject: retrive files in a directory
Retrieval of files from Directory
how to use beanName
loading images and sound files
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014