RE: How to prevent directory listing?

2004-09-02 Thread Ivan Vasquez
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


default

  org.apache.catalina.servlets.DefaultServlet


debug
0


listings
false

1


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]



Re: How to prevent directory listing?

2004-09-02 Thread Jason Lea
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

   default
   
 org.apache.catalina.servlets.DefaultServlet
   
   
   debug
   0
   
   
   listings
   false
   
   1
   
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]


How to prevent directory listing?

2004-09-02 Thread Ivan Vasquez
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]