Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with saving a csv file having problem with weblogic 8 worked with 6

843841Aug 23 2006
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2006
Added on Aug 23 2006
0 comments
120 views