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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -