Jump to content
We've recently updated our Privacy Statement, available here ×

Date format in url parameter


wisoo123

Recommended Posts

I have a report that receives a date parameter (defined as java.util.date). I call my report with "JASPERSERVER/.../flow.html?...&MY_DATE_PAR=01.01.2015". That date parameter in german format worked fine on my JasperServer 5.6 installation. Now I updated to 6.1, and I always get empty reports. After some research (checked request/response when calling report inside JasperServer web interface) I found out that I get valid reports when using date format "yyyy-MM-dd".

 

Now I checked the Jasper config files. In applicationContext.xml I found parameter "dateFormat" with value "repository.date.format". The "jasperserver_config_de.properties" sets the value for "repository.date.format" on "dd.MM.yyyy", so my date parameter should be valid?

 

How can I tell JasperServer 6.1.1 to accept german dates in urls?

 

Thanks

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Hi parisalakshmi,

casting the date inside my report according to your advice does work.

The problem is, that I have a lot of reports with date parameters, and I would have to change all these reports. That´s why I would prefer to modify the JasperServer config so it runs my reports like in previous versions ...

 

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