This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.