Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why tomcat always show me the directory list

 
lily ling
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
lily ling
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, Rene.
Lily
 
sachin shinde
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic