servlet file download works in IE7 and FireFox but not IE 6
We have a table with export button. When user clicks on export link, we download table content as csv file. It is working correctly in IE7. In IE6, It is not working. When user clicks export button, I am gettting the folloiwng information
File Download box reports
Name: GridAction.action
Type: Unknown File type
FromL localhost
This is my code.
//oResponse is HttpResponse
// Set the content type
oResponse.setContentType("text/plain");
// Set the content-disposition aka the file name
oResponse.addHeader("Content-disposition", attachement;
filename=test.csv");
// Set the cache control
oResponse.setHeader( "Cache-Control", "max-age=1" );
// Get the outputstream
OutputStream oOutput = oResponse.getOutputStream();
// Copy content to output
oOutput.write(grid.getExporter().getContent());
// Flush
oOutput.flush();
What am I doing wrong?

