verifying an image exists

Posted by Fred Forester-2 on
URL: http://ofbiz.116.s1.nabble.com/verifying-an-image-exists-tp143178.html


Hi All,

I have the need to know if a product image really exists. if a user
mistypes the image location the productsummary.ftl shows the img alt
"Small Image" and I need to show a default image when the specified
image doesn't really exist. how would I go about getting the full path
to the images dir?

Thanx
Fred