Problem with saving a csv file having problem with weblogic 8 worked with 6
Hi All,
I had a jsp in which i had a buttonn called "Save to csv" so in the servlet i wrote some code to fetch the data from datbase and send it as csv file to user desktop ,code which did this was
response.setContentType ("application/x-download");
String sname="EssentialStatsReport.csv";
response.setHeader ("Content-Disposition", attachment;filename=\""+sname+"\"");
for(int i=0;i<csvStrings.size();i++)
{
out.println(csvStrings.get(i));
}
out.flush();
This code worked fine with Weblogic 6 but not working with weblogic 8 ,
Someone please suggest the way out.
It is not giving any exception ..
I think it is related to some problem in weblogic 8 related to function setContentType.
Please help asap.
Thanks
Saurabh