Seems to me there are two possibilities:
1. Create a custom version of
Tomcat's defaultServlet with the desired presentation and set the "listings" parameter to "true". See the conf/web.xml for how this gets configured. You can also use a custom XSLT transform to customise directory listings.
2. Create a custom
servlet mapped to a specific URL for only directory listings.
In any case you will be using methods in the java.io.File class - I suggest working with these outside the servlet environment first.
Bill
[ May 13, 2008: Message edited by: William Brogden ]