On 7/10/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> 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.
But is not url-pattern defining the page address, and not a listed directory?
Also, would not the page address still be under /library/*, and not
under /files?
Artur
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]