is there a reason why you can't have the directory under webapps? In order
to do this you would need to write your own servlet that reads the file and
writes to the output stream. You should let Tomcat serve the file when
possible so that you don't have to implement all the http 1.1 features...

you can use a filter to control access to the static files.

you could also add a soft link under webapps that points to the real file.

Charlie

> -----Original Message-----
> From: Irina Lishchenko [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 17, 2002 1:44 PM
> To: Tomcat Users List
> Subject: Re: Hide download file
> 
> 
> On Wednesday 17 July 2002 16:48, you wrote:
> > Hi.
> >
> > We are using an Upload component to upload files to the server. The
> > files are placed in /fileserver/files - a directory outside 
> of webapps.
> >
> > Anyone that have example files on how to retrive the files 
> (download)
> > via JavaBean/JSP from a directory outside of webapps?
> >
> > Best regards,
> >
> > Lars Nielsen Lind
> 
> What do you mean with "retrive the files"? As I understand 
> everything depends 
> on what are you going to do with this file ... put it to a 
> database or simply 
> remove it to another place??
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to