Jump to content

Shared property file for all the JasperServer


john.doe1991

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I still don't understand what exactly prevents you from using the same resource bundle file for all your reports by poiting to the same resource bundle using the resourceBundle property of the report template. Please give more details about what exactly you want to reuse across all your reports because I simply don't get it from the two rows of text you've provided so far.
Link to comment
Share on other sites

I have almost solved the issue as follows. I put required property to WEB-INF/classes/jasperreports.properties of Jasper Server and then wrote next default expression value for parameter:

JRPropertiesUtil.getInstance(DefaultJasperReportsContext.getInstance()).getProperty("my.shared.property")[/code]

Seems that this solutions fits. But I get an error when I open a report:

java.lang.ClassCastException: java.lang.Object cannot be cast to net.sf.jasperreports.engine.JRParameter[/code]

Could you please help me to get rid of this error?

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