Jump to content

multiple resource bundles for a report ?


zac001

Recommended Posts

Does jasper provide any feature to add multiple resource bundle files in to a JRXML ? I want to display report labels fetched from 2 different property files for a single locale.  

Is this supported in jasper ? Appreciate if i could have your feed back.

Thanks

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Could do that but the application is architectured in such a way where common labels are taken from a common properties file and for each report a report specific labels are taken from a different properties file.

Link to comment
Share on other sites

The standard mechanism only supports a single properties file.

But you can programmatically pass a custom java.util.ResourceBundle instance via the REPORT_RESOURCE_BUNDLE parameter when filling a report.  So you have a java.util.ResourceBundle implementation that reads from several property files, you can use it in JR.

Regards,

Lucian

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...