How can i retrive the files in a directory and display in the text box all the files using jsp.
bye and thanks
posted 11 years ago
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.