interesting servlet question
Hi,
I have written a method that gets a 'result set' from a SQL query and saves it as a .txt file in a specific directory on the server.
When a visitor to the site clicks the button which files off the servlet, it 'generates' the file and 'dates' it up to the second.
My question is...is it possible to not only archive the file, but have it automatically kick back to the browser giving the surfer an option to download it?
If that isn't possible, I was thinking of just making another link referencing the .txt file that the surfer could just click. However, with several of the files archived in the directory, how to I make it so they get the latest generated file. (the data generated changes constantly)
Thanks for any help :)
Rob
[794 byte] By [
Faron,Rob] at [2007-11-25 16:50:29]

# 1
Rob Faron wrote:
> I have written a method that gets a 'result set' from a SQL query and saves it as a .txt file in a specific directory on the server.
>
> When a visitor to the site clicks the button which files off the servlet, it 'generates' the file and 'dates' it up to the second.
>
> My question is...is it possible to not only archive the file, but have it automatically kick back to the browser giving the surfer an option to download it?
>
> If that isn't possible, I was thinking of just making another link referencing the .txt file that the surfer could just click. However, with several of the files archived in the directory, how to I make it so they get the latest generated file. (the data generated changes constantly)
I think this is just a general Java (or Servlet API) question, not a
NetBeans/Forte issue...please look for a general Java programming
resources site for this one.
Thanks,
-Jesse
--
Jesse Glick<mailto:Jesse.Glick@netbeans.com>
NetBeans, Open APIs <http://www.netbeans.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR
To unsubscribe, e-mail: www-nbusers-unsubscribe@netbeans.org
For additional commands, e-mail: www-nbusers-help@netbeans.org