> -----Original Message-----
> From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
>
Hi,
> When I tried to upgrade to a more recent version I ran into a problem of
> not understanding how to achieve what I was achieving with the following
> code:
>
> imageURLProtocol = getInitParameter("imageURLProtocol");
> String httpBaseDir = ".";
> String baseDir = this.getServletContext().getRealPath(httpBaseDir);
> userAgent = new FOUserAgent();
> userAgent.setBaseURL(imageURLProtocol+baseDir);
Well, AFAICT, this should remain the same...
> ...
> Driver driver = new Driver();
> driver.setRenderer(Driver.RENDER_PDF);
> driver.setUserAgent(userAgent);
> driver.initialize();
But, IIC, this needs to become
import org.apache.fop.apps.Fop;
...
Fop fop = new Fop(Fop.RENDER_PDF, userAgent);
...
Result res = new SAXResult(Fop.getDefaultHandler());
...
HTH!
Greetz,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]