Accessing authenticated external graphic objects

2005-01-14 Thread Davide Bolcioni
Greetings,
while using FOP embedded in a servlet, I need to include graphics using
fo:external-graphic and said graphics are generated by the same servlet.
However, if the servlet uses http authentication the graphic is not 
included.

I think I could work around the problem by cloning the servlet under a
different name and having it provide service to 127.0.0.1 only, but I
was wondering if I could use approaches based on the servlet API such as
getResourceAsStream() or RequestDispatcher.include().
Thank you for your consideration,
Davide Bolcioni
--
Paranoia is a survival asset.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Accessing authenticated external graphic objects

2005-01-14 Thread J.Pietschmann
Davide Bolcioni wrote:
Greetings,
while using FOP embedded in a servlet, I need to include graphics using
fo:external-graphic and said graphics are generated by the same servlet.
However, if the servlet uses http authentication the graphic is not 
included.

I think I could work around the problem by cloning the servlet under a
different name and having it provide service to 127.0.0.1 only, but I
was wondering if I could use approaches based on the servlet API such as
getResourceAsStream() or RequestDispatcher.include().
You can patch the image factory to call the image producing servlet
directly. There is no easy way around this (URL handlers are another
possiblity, but implementing them in a webapp environment is even
more of a PITA then in standalone apps).
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]