• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why tomcat always show me the directory list

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot, Rene.
Lily
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic