I am using JSF1.2 framework and converting XML into PDF using FOP engine and XSL stylesheet. as far as string data is concerned, its working perfectly but now i want to embed images in my output PDF. the directory structure is as follows
ProjectDirectory
-src
--resources
---P2O.xsl
-WebContent
--images
---image1.jpg
the following works fine if i place image1.jpg file in d: drive
fo:external-graphic src='url("file:///d:/image1.jpg")'>
/fo:external-graphic>
Since i have to deploy this application on production server so i can not set this path there. My question is that what should i specify in "src" to pick that image file from WebContent/images path
Any example/help in this case would be greatly appreciated. With Regards