This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Why tomcat always show me the directory list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Why tomcat always show me the directory list" Watch "Why tomcat always show me the directory list" New topic
Author

Why tomcat always show me the directory list

lily ling
Greenhorn

Joined: Dec 03, 2001
Posts: 25
Hi, there
May I ask why after starting tomcat server, it always show me the directory list for some javascript and image file instead of some servlet or jsp file ?
Thanks in advance.
Lily
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Do you have an 'index.html, index.jsp etc.' in the startup folder?
You can turn the folder lookup off by navigate to '<TOMCAT_HOME>/conf/web.xml' and change this:

to this:

Rene


Regards, Rene Larsen
Dropbox Invite
lily ling
Greenhorn

Joined: Dec 03, 2001
Posts: 25
Thanks a lot, Rene.
Lily
sachin shinde
Greenhorn

Joined: Jul 05, 2001
Posts: 27
hello sir,
i also having same problem of LIsting and i set the parameter as per u said
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
But still it shows list of files. Is there any other setting to do?
i stored my files in
home/webapps/root/myfolder
and in browser
http://localhost:8080/myfolder
it shows all files containg in that folder.
so how to restrict the list of files to disply?
thanks
sachin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why tomcat always show me the directory list