> From: Artur Rataj [mailto:[EMAIL PROTECTED] 
> Subject: Re: Context.xml error
> 
> I have a web app that has servlets on /library/*, and want tomcat to
> also display some directory listing under /files or something like
> that.

Directory listings are handled by the DefaultServlet, normally
controlled by the value of the listings parameter in the <servlet>
declaration in Tomcat's conf/web.xml file.  This should be set to false
to prevent obtaining listings from arbitrary directories.  In your
webapp's WEB-INF/web.xml, try adding another <servlet> declaration with
a different <servlet-name> but the same <servlet-class> as the normal
DefaultServlet, and set its listings parameter to true.  Then add a
<servlet-mapping> for your renamed DefaultServlet with a <url-pattern>
that covers just the directories you want to display.

(I haven't actually tried this, but I think it will work.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to