tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkus <kk...@hotmail.com>
Subject RE: How to set up a special folder to list all files under it?
Date Tue, 02 Jan 2007 00:32:22 GMT

Under listing directory, is there any way putting a file link there since I
want to put physical file in a different disk? I tried and it showed me a
file with a link, but after I clicked this test.lnk it can't show me the
physical file at all. Thanks!


Caldarale, Charles R wrote:
> 
>> From: Caldarale, Charles R 
>> Subject: RE: How to set up a special folder to list all files 
>> under it?
>> 
>> 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.
> 
> In case I didn't make it clear before, the idea is to create a copy of
> the default servlet specifically for your webapp.  This renamed copy
> will allow access to and listings of the directory specified in its
> <url-pattern>, and nothing else.  The normal default servlet would
> continue to supply static content for all other paths, without exposing
> their directory structure.
> 
>  - 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-set-up-a-special-folder-to-list-all-files-under-it--tf2903441.html#a8118643
Sent from the Tomcat - User mailing list archive at Nabble.com.


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