This would suggest that the best way to approach this problem would be to
create a custom screen class where you can create custom getContentType and
getContent methods, as is typical for downloading files.

You could then reference this in the embed tag.

-- Michael


On 10/15/03 8:32 AM, "Stuart Belden" <[EMAIL PROTECTED]> wrote:

> You can mix content if you embed it:  e.g <embed src="/pdf/whatever.pdf"
> width="100%" height=800></embed>
> 
> stu
> 
>>>> [EMAIL PROTECTED] 10/15/03 09:59AM >>>
> I don't think that you can mix pdf content with content of other portlets on
> the same page. Best solution I can think of is to use IFRAME tag to display
> the portlet's content. IFramePortlet won't cut it because it sounds like
> you're generating your content dynamically. Your custom portlet would
> consist of a single IFRAME tag and it's source would have to be a screen
> template returning the pdf content (for example,
> http://localhost/jetspeed/template/pdfwriter.jsp).
> 
> Best regards,
> 
> Mark Orciuch - [EMAIL PROTECTED]
> Jakarta Jetspeed - Enterprise Portal in Java
> http://jakarta.apache.org/jetspeed/
> 
>> -----Original Message-----
>> From: Nicholas Nemtsev [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, October 15, 2003 5:51 AM
>> To: Jetspeed Users List
>> Subject: Re: ContentType
>> 
>> 
>> Hello!
>> 
>> Thank you!
>> 
>> On Wednesday 15 October 2003 12:09, Pernoud Aurelien wrote:
>>>                 data.getResponse().reset();
>>> 
>> data.getResponse().addHeader("Content-Type","application/force-dow
>> nload" );
>>> data.getResponse().addHeader("Content-Type","application/octet-stream");
>>> data.getResponse().addHeader("Content-Transfer-Encoding","binary");
>>> and this works fine ;)
>> I am sorry, but this solution does not work.
>> It is strange that result ContentType is text/plain. It should be
>> text/html
>> by default.
>> 
>>> Although I remember reading once on some mail-archive that turbine 2.3
>>> won't allow this kind of behavior, I'll check this  some day...
>> We use turbine 2.2
>> 
>> --
>> With Best Regards,          | mailto:[EMAIL PROTECTED]
>>         Nicholas Nemtsev    | http://www.pskov.e-nginet.com
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
>> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


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

Reply via email to