open an excel file
Hi,
When a user click a link "say "Export to Excel" on a jsp then i have a servlet whcih gets the data from that JSP and prepares an excel sheet and now in the above servlet i am setting
response.setHeader("Cache-Control", "no-cache");
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition",attachment; filename=abc.xls)
Now what is happening is when the user is clicking the link i am getting a pop up saying
Do u want to open or save the excel sheet .
If i tried to save it then its fine.But when i tried to open it I am getting error File not found.
Can anyone tell me what is the reason for it.
It would be great if any one answers my question .
Thanks in advance .

