I am trying to output the results of our database to a file and have the user download the file onto their computer. I have managed to get the file to be created but now on the confirmation page I want a link the user can click to download the file onto their machine where they would like to put it.
I've tried linking in Dreamweaver and it opens as an html page even tho the extension is .csv. I've tried right clicking and Save as but that also wants to save an html file.
If you would like an example of this, I have one on my site. Go to http://simple.souther.us and download SimpleStream. It streams images found under the WEB-INF directory but the principals are the same and it shows how to set both the contentType and contentDisposition tags to get the effect you want.