Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 79745 invoked from network); 1 Jan 2007 06:48:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jan 2007 06:48:57 -0000 Received: (qmail 57532 invoked by uid 500); 1 Jan 2007 06:48:52 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 57510 invoked by uid 500); 1 Jan 2007 06:48:52 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 57499 invoked by uid 99); 1 Jan 2007 06:48:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Dec 2006 22:48:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.61.61.104] (HELO usea-naimss2.unisys.com) (192.61.61.104) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Dec 2006 22:48:41 -0800 Received: from usea-nagw1.na.uis.unisys.com ([129.224.72.16]) by usea-naimss2 with InterScan Message Security Suite; Mon, 01 Jan 2007 00:48:19 -0600 Received: from usea-nagw1.na.uis.unisys.com ([129.224.72.51]) by usea-nagw1.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 1 Jan 2007 00:48:18 -0600 Received: from USRV-EXCH4.na.uis.unisys.com ([192.61.245.232]) by usea-nagw1.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 1 Jan 2007 00:48:18 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: How to set up a special folder to list all files under it? Date: Mon, 1 Jan 2007 00:48:16 -0600 Message-ID: In-Reply-To: <8112028.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to set up a special folder to list all files under it? Thread-Index: AcctZi7UpVXHRcMfTSqONGd6yXkcBQACTSTw From: "Caldarale, Charles R" To: "Tomcat Users List" X-OriginalArrivalTime: 01 Jan 2007 06:48:18.0226 (UTC) FILETIME=[D1C4A120:01C72D70] X-Virus-Checked: Checked by ClamAV on apache.org > From: kkus [mailto:kk_us@hotmail.com]=20 > Subject: How to set up a special folder to list all files under it? >=20 > Now I need add a specific folder which will let user to browse > all files under it without authentication. I haven't personally tried the following, so take it with a grain of salt. Also, others might know an easier way to accomplish what you want. Delivery of static content and directory listings is under control of the default servlet, as defined in the conf/web.xml file. By default, this has the listings param set to false, to disable ad hoc browsing. I think you could copy the config for the default servlet, change from default to something appropriate for your purpose, set the listings param to true, and add a servlet mapping for this renamed default to use a pointing to the directory you want to store your public files in. You would want to put this redefined servlet definition and mapping in the WEB-INF/web.xml of the webapp that will hold the public directory. - 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