For really, really restrictive security reasons I have to provide downloadable files (html, gif, applets, ...) that cannot be found in the webapps directory of tomcat (or any other server, even the directory access is restricted).
That means ... when a user requests http://www.myserver:8080/download?dir=userxy that the servlet takes all content of the directory C:/downloads/userxy/ and sends it as response to the user. One html-file (index.html) references to all the files (gifs, applets) send with the html file.
What do you want the browser to do with the set of files once it's received them? I can think of a few possibilities. It would be useful to know the rationale behind the "really restrictive security" though.
Joined: Apr 29, 2002
The broswser displays an html-page with an applet (the applet requires an XML-file). The applet and the XML-file must not be directly accessible (not in a server directory reachable by a URL even the access to this directory is restricted). That means, that the applet and XML-file have to be sent to the user/browser in a special way (by a servlet after checking the user�s rights). How can I do that?