tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: how to add restriction to a folder?
Date Fri, 24 Aug 2007 11:50:34 GMT
Easy:

1. Store your download files in a folder inside of WEB-INF which is 
protected from /direct/ access by the client.
2. Grab a copy of the default servlet source and refactor it to your 
package modding as necessary to your needs.
3. Register the servlet in your web.xml mapping to some request path 
like /downloads/*

--David

hardc0d3r wrote:

>i want to have a folder that will contain files that can be downloaded/saved
>only by going through a servlet.. how can i do this? are there any tutorials
>or links? thanks..
>  
>


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