I have a database containing one table, i want to generate CSV file with values of this table.
Actually, I want to email this CSV file as an attachment. I know about
This looks really promising. It will take any Java object and convert it to a CSV file:
http://supercsv.sourceforge.net/
It also might be possible to retrieve the data from the database in CSV format.