tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: Stream PDF using servlet
Date Thu, 24 Apr 2003 15:47:50 GMT

OK, so what you want to do is scope the headers when using OS9/IE5 and see 
what's different.

John

On Thu, 24 Apr 2003 17:27:25 +0200, <harm@informatiefabriek.nl> wrote:

> - I don't use an url ending with the extension pdf. Because I use a 
> Struts action which shows the pdf.
> So my url ends with *.do.
>
> - Content Disposition ends with *.pdf. (f.getName() returns an filename 
> ending with .pdf).
>
> - I set the content type with: response.setContentType("application/pdf") 
> ;
>
> Al of this works perfectly on Windows and Mac OS X using IE and mozilla.
> But, using OS 9 with IE 5, doesn't work.
>
> What realy bothers me is that on all OS's and all browsers downloading an 
> PDF file from a webserver like apache always works!
>
> Regards,
>
> Harm de Laat
> Informatiefabriek
>
>
>
>
>
>
>
> "Ralph Einfeldt" <ralph.einfeldt@uptime-isc.de> 04/24/2003 05:22 PM
> Please respond to
> "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>
>
> To
> "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> cc
>
> Subject
> RE: Stream PDF using servlet
>
>
>
>
>
>
> There are following recommendations:
> - Use an url that ends with the extension pdf
> - Use content disposition that ends with the extension pdf
> (does f.getName() return somthing with *.pdf ?)
> - Set the content type
>
> In the age of safty belts and airbags I tend to use all
> of them and have no trouble with it. (We also don't set any cache or 
> proxy headers, but that was for a different reason.)
>
>> -----Original Message-----
>> From: harm@informatiefabriek.nl [mailto:harm@informatiefabriek.nl]
>> Sent: Thursday, April 24, 2003 5:13 PM
>> To: Tomcat Users List
>> Cc: Tomcat Users List
>> Subject: Re: Stream PDF using servlet
>>
>>
>> I have the same problem....
>>
>> response.setContentType("application/pdf");
>> response.setContentLength((int) f.length());
>>
>> response.setHeader("Cache-Control", "no-cache");
>> response.addHeader("Content-disposition",
>> "attachment; filename=" +
>> f.getName());
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message