Hi Sunitha, In your web.xml of the application, add following inside of <web-app> directive, <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> And in each directory, put an index.html in it. The reason why you have a 404 is because you don't have that file in the directory.
And you can show anything or just redirect to any other pages by using that index.html. Edward 2006-1-7 > -----Original Message----- > From: Kumar, Sunitha [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 07, 2006 5:05 AM > To: Tomcat Users List > Subject: RE: How can directory listing be turned off for a certain webapp? > > Hi Charles, > Sorry for the incomplete information. > So, the question was: > If I have a directory, under a webapp, how can I restrict file listings > in that directory, > i.e http://<webapp_dir>/.. > How does the welcome page help? > Thanks, > -sunitha > > -----Original Message----- > From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > Sent: Friday, January 06, 2006 1:00 PM > To: Tomcat Users List > Subject: RE: How can directory listing be turned off for a certain > webapp? > > > From: Kumar, Sunitha [mailto:[EMAIL PROTECTED] > > Subject: How can directory listing be turned off for a certain webapp? > > > > I tried setting listings as false. That would then, give a 404 , > > whenever, that webapp is accessed; which is not what is desired. Any > > other options? > > Should we try to guess what is desired, or would you like to tell us? > You can always configure a welcome page for the app in question. > > - 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] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]