tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artur Rataj" <arturra...@gmail.com>
Subject Re: Context.xml error
Date Wed, 18 Jul 2007 09:49:21 GMT
On 7/10/07, Caldarale, Charles R <Chuck.Caldarale@unisys.com> wrote:
> > From: Artur Rataj [mailto:arturrataj@gmail.com]
> > 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message