In my jsp someone wants to export a query result to csv. Can't use frameworks. At the moment, here is the process:
- press button, go to servlet
- prepare data for csv
- make csv and save to server
- back to jsp and let them download the fresh-made file from an anchor tag.
Thing is, I' don't want to create this file on server, as I have to dispose it afterwards, but I still want to give the user the "save as" window. So, is there a way, putting for example an OutputStream object in session, to achieve this result? Thank you all!