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 ]
Where the default servlet is located in tomcat. If we are creating custom default servlet where we have to put that file, whether in WEB-INF/classes area or anyother location. if possible can you give some sample code for that. that will be helpful for me. Thanks for your reply.