Re: How to include an external graphic using a relative path

2003-02-04 Thread Johan Ã…brandt
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

Re: How to include an external graphic using a relative path

2003-02-03 Thread Oleg Tkachenko
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

How to include an external graphic using a relative path

2003-02-03 Thread Gustavo Lopez
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