This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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.