Use download link to get data in CSV format in JSP page
Thiru kumaran M
posted 5 years ago
Hi all !!!
I am displaying the data from iterating an array list and a hash map in a JSP page. Hash map contains four key-values - Employee Id, Employee name, Salary, Date of Joining. I have to provide a link to download the data displaying in JSP in CSV format. Just the table with Employee Id, Name, salary and date of joining are displaying fine. But how to provide option to download and how to initiate the download in comma separated value format?
can you make me clear with example ?
Also, how to get every Employee ID alone in and assign it to a script variable. I have to pass it to query string.