Jump to content
Changes to the Jaspersoft community edition download ×

Internationalization from DB instead of .properties file: JasperReports


d_mihir

Recommended Posts

Hi,
Currently my application picks up values from ReportResources_fi_FI.properties or from ReportResources_sv_SE.properties file depending on the underlying locale. Here ReportResources acts as the base name of resource bundle and this is configured in the resourceBundle attribute of the jasperReport tag in Reports.jrxml file. So, depending on the locale corresponding labels are displayed from respective .properties file after the PDF is generated.
 
Now,what I need is, instead of .properties file, these values should be picked up from the database.
 
How can this be achieved ? Can I extend a java.util.ResourceBundle class and specify its fully qualified class name as value for resourceBundle attribute in the jrxml ?
 
Or is there some other approach ?
 
I have already searched this an the other forums but could not get any concrete ideas.
Any kind of  help would be appreciated .
 
Thanks,
Mihir.
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...