Hi Peter,

I had the same issue. Here's my servlet code:

ServletContext scntxt = this.getServletContext();
String pathToFile = scntxt.getRealPath("/WEB-INF");

String imagePath = "file:" + pathToFile;
org.apache.fop.configuration.Configuration.put("baseDir", imagePath);

Hope that helps

Rakesh

-----Original Message-----
From: Peter Menzel [mailto:[EMAIL PROTECTED]
Sent: 31 January 2003 15:37
To: [EMAIL PROTECTED]
Subject: Re: userconfig.xml in servlet



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? 

<Peter/>
-- 

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


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

Reply via email to