Try
    <init-param>
      <param-name>listings</param-name>
      <param-value>false</param-value>
    </init-param>

in your web.xml. This will force Tomcat not indexing your directory.

Regs 
Holger

> -----Urspr�ngliche Nachricht-----
> Von: D Bamud [mailto:[EMAIL PROTECTED]] 
> Gesendet: Mittwoch, 14. August 2002 13:21
> An: Tomcat Users List
> Betreff: Block a dir to not display its content
> 
> 
> Tomcat4.0.4 / J2SDK1.4.0/W2K
> 
> My application is webapps/bbc. It works just fine. The dirs 
> inside it are "jsp" and "WEB-INF". Inside the jsp dir I have 
> my *.jsp files and also some directories like "doc", "src", 
> "images" etc. These are the directories that the end user 
> should not see content of via the browser. If someone make a 
> URL like /bbc/jsp/doc the contents are displayed on the 
> browser and the user could see/save them. I want to prevent 
> them IN THE SAME WAY AS "WEB-INF" dir is now (Tomcat4.x 
> onwards). How to do it.
> 
> One way is of-course put default file like index.html (based 
> on the configuration). But I am looking for more better way 
> (WEB-INF way). Where and what I need to delcare.
> 
> --
> Thanks
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to