This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes write data to xls and save this xls at client machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "write data to xls and save this xls at client machine" Watch "write data to xls and save this xls at client machine" New topic
Author

write data to xls and save this xls at client machine

Vijay Arora
Greenhorn

Joined: Jun 25, 2007
Posts: 19
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.....?


vijay arora
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
This code example shows how to stream binary files to the browser.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: write data to xls and save this xls at client machine
 
Similar Threads
show file to user
Wrting Response?
Open excel in browser
Saving JSP output to a File with extension .xls
show file to user