tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Why DefaultServlet listing does not work
Date Wed, 24 Oct 2007 11:23:53 GMT
Artur Rataj wrote:
> Hello. I have the following servlet definition:
> 
>     <servlet>
>         <servlet-name>Listings</servlet-name>
>         <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
>         <init-param>
>             <param-name>debug</param-name>
>             <param-value>0</param-value>
>         </init-param>
>         <init-param>
>             <param-name>listings</param-name>
>             <param-value>true</param-value>
>         </init-param>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
> 
>     <servlet-mapping>
>         <servlet-name>Listings</servlet-name>
>         <url-pattern>/listings</url-pattern>
>     </servlet-mapping>
> 
> It did say resource not available until I created a directory `listings' in the
> application directory. Then it become to show an empty directory listing.
> I then created various files in the directory, but the directory listing
> was still empty, even after page reload. What did I wrong?

The way the default servlet works, if it isn't mapped to '/', it won't
work properky.

Mark


---------------------------------------------------------------------
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