Jump to content

How to load a property file in/for scriptlet


mulcamd

Recommended Posts

In my scriptlet I do a lot of calculation and create a bean for a histogram in a bar chart.

For the calcuation of the histogram I use values. There are almost 1700, so way to much to show as a prompt and hard coding them in the scriptlet is very bad and no flexibel.

I want to load these values into the scriplet as a property file. This property file should be stored together with my .JRXML or .JASPER file in the same location (folder / directory and in the repository).

Questions:

  1. How can I load this property file in iReport
      My problem is that I can not figure out in the scriptlet the location of the .JRXML that is running.
  2. How should I make this work in JasperReports Server.

I'm open to other solutions than I came up with.



Post Edited by mulcamd at 12/21/2011 09:21
Link to comment
Share on other sites

  • Replies 0
  • 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...