You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John MccLain <jm...@tcshealthcare.com> on 2005/08/25 01:56:12 UTC
nonhtml download
I am able to download a PDF document by
response.setContentType( mimeType );
response.setHeader( "Content-Disposition", "attachment;filename=" +
fileName );
HOWEVER, This only SEEMS (may be masking another failure) to work when I
have a blank target (_blank) window to stream the response into. Why is
that?
Why can't it simply overwrite the window I am in? How can I determine if
this is a problem with my data stream (pdf) or the target window I am
streaming into?
John McClain
Senior Software Engineer
TCS Healthcare
jmcclain@tcshealthcare.com
(530)886-1700x235
"Skepticism is the first step toward truth"
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: nonhtml download
Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
Hi John,
Use a tool like HTTPWatch or similar and see what the actual content you
get back is... at least with HTTPWatch, you can save the content, and
then simply see if it loads in Acrobat.
The target should not make any difference, however, you could simply be
seeing a problem with the Acrobat plug-in, which isn't exactly unusual
unfortunately.
Frank
John MccLain wrote:
> I am able to download a PDF document by
> response.setContentType( mimeType );
> response.setHeader( "Content-Disposition", "attachment;filename=" +
> fileName );
>
> HOWEVER, This only SEEMS (may be masking another failure) to work when I
> have a blank target (_blank) window to stream the response into. Why is
> that?
> Why can't it simply overwrite the window I am in? How can I determine if
> this is a problem with my data stream (pdf) or the target window I am
> streaming into?
>
> John McClain
> Senior Software Engineer
> TCS Healthcare
> jmcclain@tcshealthcare.com
> (530)886-1700x235
> "Skepticism is the first step toward truth"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
> .
>
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org