"[Pradeep Naik]" wrote:
>
> It is still showing me the directory listing under
> examples directory..
>

 Go to conf/web.xml. Find the <servlet> entry for the default
servlet. Change:

    <init-param>
      <param-name>listings</param-name>
      <param-value>true</param-value>
    </init-param>

 to:

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

 conf/web.xml contains defaults for all webapps.

 Note that this just stops auto-indexing, it doesn't
"protect" any of the files in your webapp. It's also
Tomcat specific. A cross-platform alternative would
be to create a blank "index.html" file, or forward
to an error  page using the welcome-file mechanisms.


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to