At 11:43 AM 7/11/2002 -0500, you wrote:
>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
Why don't you just handle it by putting something in their session
saying that they filled out the form correctly, and write a downloader
servlet that looks for that something, and will only send them the bits
if they've filed out the form? Writing a servlet to send a file is
pretty darned tri
If you make them login, you could put a security constraint on your
downloads directory. That would pretty well seal it up, I believe =)
HTH,
Eddie
Kevin Passey wrote:
>But if I create a directory called "downloads" and put the file in there -
>what's to stop someone just typing the fol
y, July 11, 2002 12:44 PM
> To: 'Tomcat Users List'
> Subject: RE: How to hide a download file
>
>
> I was thinking of setting something in the session for the
> download page
> anyway which would direct a user back to the form.
>
> But if I create a d
ks everyone for your input.
Kevin
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: 11 July 2002 17:46
To: 'Tomcat Users List'
Subject: RE: How to hide a download file
you can use a filter to see if the referring page is your form and then
allow the download
needs to and it gets redirected when you want it to.
Charlie
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 12:46 PM
> To: 'Tomcat Users List'
> Subject: RE: How to hide a download file
>
>
>
> Of
2002 12:36 PM
> 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_filenam
Off the top of my head, couldn't you "pipe" together a FileInputStream and a
ServletOutputStream ?
Something like:
- open input stream
- open output stream to browser
- read in file, piping it to output stream
- close file stream
- close servlet stream
The user would never know where the file
-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
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, >
10 matches
Mail list logo