Hi! First of all: You are really a great mailing list!! Helpful comments almost immediately, every time :-)
Setting the basedir in the config file is working - thank you! It is no perfect solution as I still have to once more note the installation directory, but I already reference my fonts that way and get along setting CATALINA_HOME for Ant ... Passing request.getServerName (and perhaps request.getServerPort()) is what I would have used... indeed, I already do something similar in a preprocessing step (for the simulation of floats) to manage Server (not tomcat)-relative URLs. Being interested generally, if anybody knows/finds the "default" of this basedir in a servlet environment where no real fo files are written, please let me know! Regards, sonja > -----Original Message----- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Freitag, 12. August 2005 22:20 > To: fop-users@xmlgraphics.apache.org > Subject: Re: Relative URLs > > Sonja Löhr wrote: > > I now try to replace an absolute URL on an external-graphic element > > with a relative one. > > You'll probably need to set the baseDir in the FOP configuration. > See > http://xml.apache.org/fop/embedding.html#config-internal > Try getRealPath("/") on the servlet context in order to get a > useful file system path. > > J.Pietschmann > > --------------------------------------------------------------------- > 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]