d_mihir Posted August 28, 2015 Share Posted August 28, 2015 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 More sharing options...
marianol Posted August 28, 2015 Share Posted August 28, 2015 Check out this Article http://www.webreference.com/programming/Globalize-Web-Applications15_Java_ResourceBundles/index.html Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now