The error message gives you a good hint what you need to do. It says:
"no base URL is specified". So you need to do that and [1] tells you how,
although it may not be obvious that you can use a URL there, too.

Configuration.put("baseDir", "http://localhost:8080/Firebird/";);

...should solve your problem.

[1] http://xml.apache.org/fop/embedding.html#config-internal

On 05.01.2005 02:01:25 Hariprasad Davanagere wrote:
> Hi guys,
> I am facing problems while getting the images to display in PDF. Here are 
> the details, i am using jboss_3.2.5 and the dir structure is as follow...
> rootfolder/jsp/images/tick.gif
> rootfolder/WEB-INF/trial.xml
> rootfolder/WEB-INF/trial.xsl (xsl-fo file)
> 
> I creat the PDF using transformer factory in a servlet.
> I get the images when i say <fo:external-graphic 
> src="http://localhost:8080/Firebird/jsp/images/tick.JPG)" />, i want to use 
> relative path's . The error message i get is as follows...
> Error while creating area : Error with image URL: NCI-bw.gif and no base URL 
> is specified



Jeremias Maerki


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

Reply via email to