tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <fzli...@omnytex.com>
Subject RE: How can I refresh tomcat in the java code?
Date Wed, 02 Apr 2008 17:32:33 GMT
What he said :)

FYI, serving PDFs in particular can be a bloody mess because of Acrobat
STILL not being able to get their s**t together when it comes to their
browser plug-in.

I wrote a Wiki entry on the Struts Wiki some time ago that might help:

http://wiki.apache.org/struts/ServingPdfDocuments?highlight=%28pdf%29

It's not really specific to Struts, so should help.

Frank

-- 
Frank W. Zammetti
Author of "Practical DWR 2 Projects"
  and "JavaScript, DOM Scripting and Ajax Projects"
  and "Practical Ajax Projects With Java Technology"
  for info: apress.com/book/search?searchterm=zammetti&act=search
Java Web Parts - javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!
My "look ma, I have a blog too!" blog: zammetti.com/blog

On Wed, April 2, 2008 1:24 pm, Caldarale, Charles R wrote:
>> From: Guilherme Orioli [mailto:gui.orioli@gmail.com]
>> Subject: Re: How can I refresh tomcat in the java code?
>>
>> memoryPDF = new FileOutputStream("test");
>
> Don't create a FileOutputStream, use ServletResponse.getOutputStream()
> instead.  Make sure you set the content type to application/pdf, of
> course.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message