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?

[971 byte] By [JK2004a] at [2007-11-27 11:53:20]
# 1

Any help ?

JK2004a at 2007-7-29 18:49:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

CROSS POSTED

http://forum.java.sun.com/thread.jspa?threadID=5199633

cotton.ma at 2007-7-29 18:49:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...