• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

write data to xls and save this xls at client machine

 
Vijay Arora
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.....?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This code example shows how to stream binary files to the browser.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic