Hi, Joseph,

You can:

a) create an index.jsp page for your directory, or
b) create (or edit, if you have it already...) a web.xml file for your
webapp and alter the <welcome-file-list> section:


    <welcome-file-list>
       <welcome-file>
            index.jsp
        </welcome-file>
        <welcome-file>
            index.html
        </welcome-file>
        <welcome-file>
            index.htm
        </welcome-file>

         <!-- add this to enable abc as your welcome page -->
        <welcome-file>
            abc.jsp
        </welcome-file>

    </welcome-file-list>


Julio

----- Original Message -----
From: Joseph Wong <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 26, 2000 10:30 AM
Subject: How to disable directory listing in Tomcat?


> I used Tomcat and Apache to run jsp where I mapped /jsp to Tomcat to
handle
> jsp program, so I can call abc.jsp by http://ip-address/jsp/abc.jsp
through
> browser.
>
> However, when I call http://ip-address/jsp/ through browser, a list of jsp
> programs under /jsp dirctory were listed. How to disable this feature???
>
> Joseph.
>
____________________________________________________________________________
_________
>
> Get more from the Web.  FREE MSN Explorer download :
http://explorer.msn.com
>
>

Reply via email to