jasperserver - Load default image if particular image is not in repository in jasper -
i want load image dynamically in report. name of image comes database , in expression i'm creating repo path.
"repo:/images/"+$f{image_name} but gives me error if image not in repository.. when image not in repository want load default image instead of error.
how achieve this??
i tried not working.
new java.io.file("repo:/images"+$f{image_name}).exists()?"repo:/images"+$f{image_name}:"repo:/images/default_image" thanks.
Comments
Post a Comment