Text files numbering

Hi, does anyone know how to display all the text files in a directory using JSP codes?For example, I have a show.jsp, which have a textarea to show all the text files in a directory. anyone?
[211 byte] By [des_xu] at [2007-9-26 1:26:52]
# 1
Take a look at the File class in java.io.It has a method called list() which returned an array of Strings that contain the files and directories for a specified directory.
jpardi at 2007-6-29 1:10:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
hi..thx but if there any example codes? like how to declare to display the strings?thanks
des_xu at 2007-6-29 1:10:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
hmm..i think i can display the strings but how do i display strings of the same file type? thx!
des_xu at 2007-6-29 1:10:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
anyone? thx!
des_xu at 2007-6-29 1:10:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...