You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Hassan-Zadeh, Martin" <Ma...@Dresdner-Bank.com> on 2005/04/08 14:49:33 UTC

Problem with embedding external graphics

Hi,

is it possible to embed FOP into a servlet  ( concrete struts action ) in a
way that the relative 
url for fo:external-graophics is using the same session and user principal
when access the URL.
I my special case I need to render a PDF inside a struts action and must
include dynamic png's which are 
accessible another secured struts action.
Thank you in advance for your reply.

Kind Regards

Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Problem with embedding external graphics

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Hassan-Zadeh, Martin wrote:
> is it possible to embed FOP into a servlet  ( concrete struts action ) in a
> way that the relative 
> url for fo:external-graophics is using the same session and user principal
> when access the URL.

Short answer: No.
You can use a HTTP URL as src in a fo:external-graphic. There is no way
to pass HTTP auth data or cookies to the code which retrieves the data.
Hacking this into the code *will* get messy. Dynamic data has to be
encoded as part of the URL, e.g. as URL parameters, while generating
the FO document. You can try to use host based access restrictions on
your local web server in order to avoid other security mechanisms.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org