Peter Menzel wrote:
I cannot specify the basedir/fontbasedir in the userconfig.xml, because I do
not know it.
My web application will be deployed as a war file in some servlet container
from which I do not know anything about directory structures..

Is there another way, to set the font basedir in FOP, or importing the fonts
xml file directly in the servlet to the Options or Driver object?

You can use org.apache.fop.configuration.Configuration.put("baseDir", getServletContext().getRealPath("/fop"));

See getRealPath() documentation.
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to