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
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