I'm going to have to inevitably add it to my site soon, I was going to
approach it the same way, but with a servlet isn't it possible to pipe a
file by setting the response mime type and streaming it out as a PDF or
EXE.  Of course IE does it's own thing no matter the mime type. 

-----Original Message-----
From: Alex Short [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 11:36 AM
To: Tomcat Users List
Subject: Re: How to hide a download file

Certainly not the most elegant solution but you could keep the real file

in a unreachable location, and upon submitting it copy's the file to a 
cookie_date_time_filename.ext and has them download that.  Then you run
a 
cleaner script to erase these temp files after 24 hours.

Alex

 > Hi all, > 
> I need to pick your brains again.
> 
> I need to publish a site that requires a user to fill in a form before
> displaying a download link.
> 
> What I need to do is to hide the file to be downloaded so that it
cannot be
> downloaded without the form being filled in - i.e it can only be
downloaded
> from a particular generated JSP page.
> 
> Can I do this with Tomcat?
> 
> Thanks in advance.
> 
> 
> Kevin 
> 
> --
> 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]>

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
 


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

Reply via email to