You can define baseDir property (see faq howto) as
getServletContext().getRealPath("/project/img")
snip...
Just a reminder that getRealPath( ... ) is allowed to return null if the
application is deployed for example in a war file, according to the
servlet spec. This advice is hence likely to w
Gustavo Lopez wrote:
Using FOP, I succesfully wrote a servlet to generate PDF's from in-memory DOM
object's containing XSL-FO markup.
I able to embed graphics files by specifying a physical path as in:
However, since this is a web application, I need to be able to specify a relative path for th
Using FOP, I succesfully wrote a servlet to generate PDF's from in-memory DOM
object's containing XSL-FO markup.
I able to embed graphics files by specifying a physical path as in:
However, since this is a web application, I need to be able to specify a
relative path for the image file.
Tha