Thanks Jason, I already did, but it seems to override ActionServlet and none of my pages work. I also tried by changing the startup order to 3 (after ActionServlet), but still no luck!
Ivan. -----Original Message----- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 6:40 PM To: Struts Users Mailing List Subject: Re: How to prevent directory listing? I think (haven't tried this myself) you can override it in your own application's web.xml eg add this to your web.xml in the appropriate place <servlet> <servlet-name>default</servlet-name> <servlet-class> org.apache.catalina.servlets.DefaultServlet </servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>false</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> Ivan Vasquez wrote: >Is it possible to prevent a particular Struts webapp from displaying >directory listings? That is, global /conf/web.xml has its DefaultServlet >with listings set to true, thus enabling dir listing for all apps. Can I >then prevent a particular Struts webapp from doing so by setting >something in the local web.xml? > >Thank you. >Ivan. > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- Jason Lea --------------------------------------------------------------------- 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]