tomcat-users mailing list archives

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

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


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:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message