Forums Register Login

write data to xls and save this xls at client machine

+Pie Number of slices to send: Send
i have written data to xls using jxl api but how can i give option to user to save this fxls file on his machine.
i have called a jsp file from js function and this jsp is writinig data to xls and saving it to server directory but i want to give user a option to save this file on his machine.i have set contenttype also.
response.setContentType("application/vnd.excel-msdownload");

response.setHeader("Content-Disposition","attachment;filename=\""+"filename" );

Is there any way.....?
+Pie Number of slices to send: Send
This code example shows how to stream binary files to the browser.
"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1337 times.
Similar Threads
Saving JSP output to a File with extension .xls
show file to user
show file to user
Wrting Response?
Open excel in browser
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 22:38:53.