On Sep 1, 2006, at 11:27, Peter Neu wrote:
Hm, is this possible? When fop reads the userconfig.xml, where is
the base
directory? The application runs in tomcat so I don't know where to
put the
base dir.
I think so. Unfortunately, I'm not all to familiar with getting this
info in a servlet context, but isn't it possible to obtain the root
from the below tree via the servlet?
(maybe others on this list immediately know the idiom for retrieving
that)
In that case, it might become even simpler:
fopFactory.setFontBaseURL(
{root here} + System.getProperty("file.separator") + "XML");
Same line of code for both platforms.
HTH!
Andreas
File system looks like this
ROOT
|----WEB-INF
| |--------classes
|
|----XML
|------- userconfig.xml
|------- verdana.ttf
|------- ttfcm.xml
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]