prevent directory list

View: New views
2 Messages — Rating Filter:   Alert me  

prevent directory list

by Dave-53 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I am using JBoss 4.0.5.
   
  I tried to prevent directory listing by adding the following in web.xml, but got error: Child name 'default' is not unique.
   
    <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>
   
  Could someone help me on how to prevent directory listing?
  I tried to  change default to default1, it did not work.
   
  Thanks very much.
  Dave

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Re: prevent directory list

by Hassan Schroeder-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, May 10, 2008 at 12:24 PM, Dave <javaone9@...> wrote:

>  I tried to prevent directory listing by adding the following in web.xml,

"adding"? That's in web.xml already, and the listings default is false
in every TC version I've got laying around :-)

Why do you think you need to "add" anything?

--
Hassan Schroeder ------------------------ hassan.schroeder@...

---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...