Ralph, in my web.xml is nothing but this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app id="WebApp"> <display-name>KamAdminWeb</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app>
Could you please tell me how to insert what you recommended. I tried to do it but it didn't work. So I'll try again. Thank you, Nick Ralph Einfeldt wrote: > Have a look at the DefaultServlet in web.xml. > It has an entry like this: > > <init-param> > <param-name>listings</param-name> > <param-value>true</param-value> > </init-param> > > Change true to false. > > (Also have a look at the welcome-file-list in web.xml) > > Ralph Einfeldt > Uptime Internet Solution Center GmbH > Hamburg, Germany > Hosting, Content Management, Java Consulting > http://www.uptime-isc.de > > >>-----Ursprüngliche Nachricht----- >>Von: Nikolas A. Rathert [mailto:[EMAIL PROTECTED]] >>Gesendet: Mittwoch, 31. Juli 2002 12:25 >>An: [EMAIL PROTECTED] >>Betreff: Suppression of directory listing in Tomcat >> >> >>Hi - I just posted some hours ago. >>Could anybody give me a hint for my problem please: how do I have to >>configure server.xml or whatever to tell Tomcat that it >>should not show the complete directory to the user in case there >>is no index.html or something like that in the directory? >>I know how to handle that with Apache but the htdocs directory has >>nothing to do with Tomcats webapps. Therefore, there has to >>be another solution. >> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>