This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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 ]
Vignesh Babu M.J.
Joined: May 13, 2008
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.
Author and all-around good cowpoke
Joined: Mar 22, 2000
The standard Tomcat installation comes with a "class-loader-howto.html" file under ../webapps/docs that tells all about where classes should go for various purposes.