aspose file tools*
The moose likes Tomcat and the fly likes Direcotry Listing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Direcotry Listing" Watch "Direcotry Listing" New topic
Author

Direcotry Listing

vijaya lakshmi
Greenhorn

Joined: Oct 31, 2003
Posts: 7
HI!
How can prevent displaying Directory Listing when user enters just directory.Like http://localhost:8080/admin/ or http://localhost:8080/dealer/.I'm using jboss-3.0.4_tomcat-4.1.12 server.I have given the following element in web.xml file also
<welcome-file-list>
<welcome-file>welcome.jsp</welcome-file>
</welcome-file-list>
Still it's giving direcotry listing.
Regards.
Vijaya.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Check the 'listings' property in the file $CATALINA_HOME/conf/web.xml
Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
hi
i too am encountering the same ,but i am using iplanet4.1 ,how can we avoid in displaying in the Directory listing in browser ?

rgds
Rajendar
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

For iPlanet.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

Moving to the Tomcat forum.
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Direcotry Listing