Re: userconfig.xml in servlet

2003-01-31 Thread Oleg Tkachenko
Peter Menzel wrote: I want to set FOPs userconfig.xml in the servlet, using these lines: File userConfigFile = new File(getServletContext().getResource(/WEB-INF/userconfig.xml).toExternalForm() ); So check here whether such file exists: if (userConfigFile.exists()) Otions options = new

RE: userconfig.xml in servlet

2003-01-31 Thread Rakesh Patel
-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

Re: userconfig.xml in servlet

2003-01-31 Thread Oleg Tkachenko
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

RE: userconfig.xml in servlet

2003-01-31 Thread Peter Menzel
Thanks, but it still does not work. I use File userConfigFile = new File(getServletContext().getRealPath(/WEB-INF/userconfig.xml)); to set the userconfig file, and this works fine. but all efforts to set the baseDir didn't work: I tried: String pathToFile =

Re: userconfig.xml in servlet

2003-01-31 Thread J.Pietschmann
Peter Menzel wrote: ... String pathToFile = file://w:/projekte/owservlet/build/WEB-INF/; ... but the fop tells me [ERROR] Failed to read font metrics file /projekte/owservlet/build/WEB-INF/mtcorsiva.xml : null whats happening to the file://w: part of the path ? Study the file: scheme URI syntax,