Hello ranchers, I have a typical problem, for which I am looking for suggestions/advise. The requirement is that I have to export data from a table(based on some search criteria) to a .csv file.. on the client side.
There would a export button on the jsp page clicking on which, the displayed data has to be saved on the client system.
Actually it would probably better be done in a servlet.
The easiest way would be to requery the data, and then just write it out as a CSV. Set the response headers to prompt the user to save the file
posted 14 years ago
Thanks for the reply.
I am using the same but as the file is not a static one, and data varies each time. I need to add data to the response and using the getWriter(). My problem with this is that the number of such records may be many and adding huge data to the response object may be resource intensive operation. Meanwhile simultaneous operations are alos supported.
It would be great, if there is any less intensive method for handling the situation.
Thanks in advance.
catch it before it slithers away! Oh wait, it's a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop