> From: Kumar, Sunitha [mailto:[EMAIL PROTECTED] > Subject: RE: How can directory listing be turned off for a > certain webapp? > > So, the question was: > If I have a directory, under a webapp, how can I restrict > file listings in that directory,
You probably should disable directory listings for most if not all webapps, since there's no need for end users to know what's in there. Implementing a welcome page gives Tomcat something to reply with other than the 404. Your <servlet-mapping> can be used to pick any servlet class of your app that you want as the default if you choose a <url-pattern> that matches one of the standard welcome pages (usually index.jsp). Take a look at how Tomcat's ROOT app works - you can actually remove the index.jsp file from it and it continues to happily deliver the Tomcat home page, since the mapping forces it to use index_jsp.class from the ROOT/WEF-INF/lib/catalina-root.jar file - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]