Export to Excel or CSV from a JSP application
Posted on 2007-04-04
I have a simple JSP application that displays reports from data from a SQL database. I want to give the user the option of exporting the results to an excel or csv file by pressing a button. Is there any simple way of doing this?
The sql query is stored in a string variable 'sql' if that would help things a bit.