Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have made a servlet which creates a excel file. But when client access this servlet the file stores on the server. I want to store it on the client side.
How to do this in java.
Posted
Updated 23-Jul-12 20:07pm
v2

1 solution

No webapplication has access to the client's hard disk. You cannot write to client's hard disk...


You need to write the response to the client's browser which will throw the excel sheet on to the page and the client can decide whether to save it or cancel.
 
Share this answer
 
Comments
mohit17dec 24-Jul-12 12:10pm    
Buddy, I dont know much about it. Could u please post the sample code for this
bbirajdar 25-Jul-12 1:56am    
http://stackoverflow.com/questions/477886/jsp-generating-excel-spreadsheet-xls-to-download

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900