File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Disabling listings of a directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Disabling listings of a directory" Watch "Disabling listings of a directory" New topic
Author

Disabling listings of a directory

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi

i dont want the contents of the directory to be listed under a web applictaion but i had disabled this by setting the listings attribute in conf\web.xml to false.but when i try after doing this ,tomcat shows page can not be displayed page which comes if there in no network .i want a customary page to come for this .how shall i do this
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12753
    
    5
Sounds like you need to look at this section of web.xml:

(from the default web.xml in the \conf directory)
Tomcat looks for the files on this list before showing that error.

Bill
 
Don't get me started about those stupid light bulbs.
 
subject: Disabling listings of a directory
 
Similar Threads
Problem using DIV tag
Customisation in Directory Listing
which java Collection is suitable to store a big Files(Directory) ?
Get File list from URL
how u keep directory browsing off