I've got a report that accepts a date parameter. if the parameter value is not provided, then the date should default to yesterday. I have set the default expression to the following
new Date(System.currentTimeMillis() - 24 * 60 * 60 * 1000)
This works well when i run in iReport, but when I deploy to Jasper server (3.5) and schedule the report to run it doesnt seem to work. At the parameter tab of the schedule process i put in no value. When the report runs, it runs with a null value for the parameter instead of firing the default expression.
Am I missing something? Thanks