tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: How to set up a special folder to list all files under it?
Date Mon, 01 Jan 2007 18:04:53 GMT
> From: kkus [mailto:kk_us@hotmail.com] 
> Subject: Re: How to set up a special folder to list all files 
> under it?
> 
> Still confused with servlet class 
> (FullPackageNameOfServletClass) here. What
> is required in building such a class?

You don't have to create any classes.  Just do what I said in the
original response, which is to copy the existing declaration for the
default servlet from conf/web.xml to your own WEB-INF/web.xml.  Change
the name of the servlet, but not the servlet class - leave that as:
    org.apache.catalina.servlets.DefaultServlet

Also change the <param-value> for listings to true (in your copy), and
supply a servlet mapping for the renamed servlet to use the directory
that has your public files.

 - 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message