Paulo,
 
I had a similar problem with IE6, but it may not be the problem you are
experiencing... IE6 would correctly prompt me to save the file, or open it.
I could save it with no problems, but the open option did not work. The
problem was caused by cache-prevention headers that made IE6 delete the
downloaded file immediately after it has been stored in the temp folder. So
when the external app tried to open the file, it could not find it anymore. 
 
It also happened only with some content-types (typically application/pdf),
while some other content-types (typically msword, msexcel) did not have this
problem - probably because of a different way of passing the downloaded data
to these apps from IE6.
 
This is a sample of the response headers that currently work for me in IE6:
 
HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=3600, must-revalidate
content-disposition: attachment; filename="Akceptacni
pomery_mesic_2009_02_01-2009_02_28.pdf"
Content-Type: application/pdf
Content-Language: cs-CZ
Content-Length: 80261
Date: Wed, 11 Feb 2009 09:52:21 GMT

Cheers,
Jan
 
-----Puvodní zpráva-----
Od: Ben Gunter [mailto:[email protected]] 
Odesláno: 10. February 2009 15:09
Komu: Stripes Users List
Predmet: Re: [Stripes-users] StreamingResolution, and IE6 problems when Save
File



Paulo, is this over SSL? There are known issues with SSL and IE6 and file
downloads. It's worth a look if you're using SSL. I think we still have an
open issue in our JIRA about this, too.

http://support.microsoft.com/kb/323308

If not SSL, then you might want to see if there is actually a file with that
name in your IE6 temp directory that's preventing the browser from saving a
new file with that name because of permissions or because another process
has it open or something.

That's all I can think of.

-Ben


On Fri, Feb 6, 2009 at 10:28 AM, Paulo Hélio Alves
<[email protected]> wrote:



Hello!

First off all, sorry for my bad English.

I'm using Stripes 1.5, Java 1.6 and Jboss 4.2.3, Windows Vista, and I have
some problems with StreamResolution and IE6.

What's uppen is something like this:

When i take the file to be downloaded, generate one InputStream, and i past
to StreamResolution with the content type, like this:


public Resolution generateReport() throws IOException {
        user = service.findbyId(id);
       fileChoosed =
"File_"+SpecialCharFilter.replaceSpecial(user.getName()).trim().replace("
","_")+".pdf";
       InputStream in = recruitmentService.generateInterviewReport(id);
       return new StreamingResolution(getContentTypeTrial(fileChoosed),
in).setFileName(fileChoosed);
   }

public String getContentTypeTrial(String file){
     ...
     return "application/pdf";
}

The result is the IE6 cannot open the file because he cannot save the file
in his temporary files directory.

The most strange is, if i take off the ".setFileName(fileChoosed)", he save
the file well, but with the name of the action.

Everythings work fine in FF and IE7, and Chrome, only IE6 is a very strange
browser.:confused:



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to