Wednesday, 15 January 2014

java - jasper report locale wise country name -



java - jasper report locale wise country name -

how show country name per particular study locale's language?

i stored country codes in database. when display list of country utilize next code

new locale("", $f{country_code}).getdisplaycountry(new locale($p{report_locale}))

but not working getting error.

net.sf.jasperreports.engine.jrexception: errors encountered when compiling study expressions class file: 1. constructor locale(locale) undefined

is there way display country name per study language?

correct code should bellow

new locale("", $f{country_code}).getdisplaycountry($p{report_locale})

$p{report_locale} returns locale object.

java internationalization jasper-reports

No comments:

Post a Comment