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:53]
# 1

What does "is not working" mean?

CeciNEstPasUnProgrammeura at 2007-7-29 18:52:47 > top of Java-index,Java Essentials,Java Programming...
# 2

It means that i am not getting filename as "test.csv"

JK2004a at 2007-7-29 18:52:47 > top of Java-index,Java Essentials,Java Programming...
# 3

So why didn't you say so in the first place? <_<

Try calling it "attachment" without the additional e.

CeciNEstPasUnProgrammeura at 2007-7-29 18:52:47 > top of Java-index,Java Essentials,Java Programming...
# 4

sorry for that...

I don't understand..Can u explain more ?

JK2004a at 2007-7-29 18:52:47 > top of Java-index,Java Essentials,Java Programming...
# 5

> I don't understand..Can u explain more ?

> oResponse.addHeader("Content-disposition", attachement;

filename=test.csv");

Although this can't be your real code anyway.

CeciNEstPasUnProgrammeura at 2007-7-29 18:52:47 > top of Java-index,Java Essentials,Java Programming...
# 6

Thread now continues here (with very minor twist)

http://forum.java.sun.com/thread.jspa?threadID=5199685&tstart=0

cotton.ma at 2007-7-29 18:52:47 > top of Java-index,Java Essentials,Java Programming...