I am attaching the action class. The same code works in a Servlet.

FDF document is a very small document that has a link to the pdf document on
the server.


-----Original Message-----
From: Aaron Smuts [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 4:06 PM
To: Turbine Users List
Subject: RE: Please help. Content type: Sending pdf content to the
browser


You tried the buffered file server?

Then you might need a PDF serving servlet so you have control.  Sounds
funny.  Can you send the entire class.

> -----Original Message-----
> From: Aravinda Addala [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 10:56 AM
> To: Turbine Users List
> Subject: RE: Please help. Content type: Sending pdf content to the browser
>
>
> It doesn't actually work in Turbine 3 .
> All it output on the screen is the plain text of the FDF document(Adobe
> FDF
> api).
>
> Thanks for the reply.
> Aravinda
>
>
>
> -----Original Message-----
> From: Fabio Daprile [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 2:51 PM
> To: Turbine Users List
> Subject: Re: Please help. Content type: Sending pdf content to the
> browser
>
>
> This is how i send files to the browser.
> All documents are stored in a table in MySql, in a blob field.
> For pdf files the content_type is "application/pdf".
> I use turbine 2.
>
>  _attach = (Attachments)(_trans.getAttachmentss().elementAt(0));
>
>  _contentType = _attach.getContenttype() + ";name=" + "\"" +
> _attach.getFilename() + "\"";
>  data.getResponse().setContentType(_contentType);
>  data.getResponse().getOutputStream().write(_attach.getContent());
>
> hope this can help you.
>
> Greetings.
>
> Fabio Daprile
>
> Aravinda Addala wrote:
>
> >Hi,
> >
> >I have read several postings about sending a different content to the
> >browser. I am trying to generate a pdf using FDF in my action. I get the
> >content displayed as plain text. I tried many ways ( I had set the
> content
> >type both in Response and RunData objects in my action. Also tried to use
> >data.setContentType in the template. Nothing worked). The same code works
> >fine if I use that in a Servlet outside turbine.
> >I am using turbine 3.
> >
> >Please help.
> >
> >Thanks in advance.
> >Aravinda
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
> >
>
> --
>
>
> W�rth Phoenix Srl
> Via Kravogl 4, I-39100 Bolzano
> Tel: +39 0471/564111
> Fax: +39 0471/564122
>
> mailto:[EMAIL PROTECTED]
> http://www.wuerth-phoenix.com
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:turbine-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:turbine-user-
> [EMAIL PROTECTED]>

Attachment: CreatePDF.java
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to