Jump to content

JVM Scripts for JasperReports (JSR 223)


klausboeing

Recommended Posts

 Hello,

 

 

I am developing an extension to the jasperreports, which enables the use of scripts that run on the jvm, following the jsr 223. At first use a static field to write the scripts. Add a property in the static field enabling the use of scripts, "script = true". As the jasperreports uses natively groovy, I consider that the standard language, other languages, I define another property "script.language = jruby". I've been looking for this feature, but could not find.

I will make injection of fields, variables and parameters within the scripts, so it is possible to do complex algorithms within a report.

I have a prototype with this implementation, and would like to hear from you about this implementation. There is something about this, someone is interested in that feature.

 

Thanks.

Link to comment
Share on other sites

  • 2 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

I'm not sure you saw that in JR we support pluggable expression languages. We ship the library with buil-in report compilers for groovy, java, javascript and bsh. You can implement your own compilers and associate them with a new custom value for the language attribute in JRXML.

Is there a reson for which you did not implement the existing report compiler interfaces of JR, to support jruby?

How is your added feature different from a "normal" JR report compiler?

 

Thanks,

Teodor

 

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