You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bridges-user@portals.apache.org by tom tom <j_...@yahoo.com> on 2006/04/12 01:17:38 UTC

PDF rendering issue

Hi,
In a  normal struts application in the action class we
can get the output stream and can do the
PDF rendering,

But I want to know How can the same functionality be
achieved using a struts-bridge because when I tried
to get the output stream it is basically null,
How can we do a pdf rendering kind of task using
struts bridge,


Also I would like to know when to set the action url
and the render urls in the config.

Currently all my entries are action urls,
Thanks


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: PDF rendering issue

Posted by Ate Douma <at...@douma.nu>.
Tom,

First of all, please properly subscribe for this list so I don't
have to moderate you through every time:

   mailto:bridges-user-subscribe@portals.apache.org
   mailto:bridges-dev-subscribe@portals.apache.org

Further comments below.

Regards, Ate

tom tom wrote:
> Hi,
> In a  normal struts application in the action class we
> can get the output stream and can do the
> PDF rendering,
> 
> But I want to know How can the same functionality be
> achieved using a struts-bridge because when I tried
> to get the output stream it is basically null,
That is because your portlet output is now going to be aggregated to a portal managed page,
potentially together with the output from other portlets as well.
So, your content *must* comply with the content-type of your page (usually html).
Please read up on the JSR-168 portlet specification.

> How can we do a pdf rendering kind of task using
> struts bridge,
You can use an iframe which src points to a (struts) servlet rendered output stream.
Or you can use something like a portlet or fileserver pipeline as provided by Jetspeed-2,
but that is a portal specific solution, not based on JSR-168 specs and thus not easily
"portable" to other portals.

> 
> 
> Also I would like to know when to set the action url
> and the render urls in the config.
> 
> Currently all my entries are action urls,
Again, please read up on JSR-168, and then check out this:
   http://portals.apache.org/bridges/multiproject/portals-bridges-struts/features.html

> Thanks
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bridges-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: bridges-user-help@portals.apache.org
> 
> 
> 


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