cancel
Showing results for 
Search instead for 
Did you mean: 

CSV download

Former Member
0 Kudos

Hello,

I have a requirement to download data present in a JSP to a CSV.

Any leads will be appreciated.

- Regards,

Sudeep

Accepted Solutions (0)

Answers (2)

Answers (2)

alespad
Contributor
0 Kudos

Edited

Edited by: alessandro spadoni on Mar 23, 2011 10:16 PM

fabio_sarmento
Contributor
0 Kudos

Hi Sundeep,

What you mean? Do youn need to catch the content of the jsp on a CSV?

Please remember to evaluate the replays, this incentive the SDN to keep growing,

regards,

Fabio

Former Member
0 Kudos

Fabio,

Yes. The data is in a jsp and needs to be downloaded to a CSV file.

- Regards,

Sudeep

Former Member
0 Kudos

Hi

I used java.io.FileWriter class to enter data into a file.

Next create a byte array from the file.

Using the HttpServletResponse, the byte array is provided to user for download

Refer my SDN article on this topic for detailed steps:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3031c2eb-9437-2e10-61bc-e30ef9d09...

- Sudeep