Specifying report running properties in the session

When designing integration and security with your application, compared to putting all information in the URL, setting sensitive information in the session and letting the server fetch them when running reports is a more secure way.

JReport provides a key word JReport _running_parameter for holding property variables in the session. Users can set a string with this key word in the session before calling JReport services. The string should take the query string format used in URLs of running reports/dashboards and obey application/x-www-form-urlencoded format and be encoded by UTF-8.

When running reports or dashboards, JReport gets information first from URL and then picks up provided information from the session using the key words. For information that exists in both the URL and the session, the session setting overrides the URL settings.

For running reports via server JSP

For properties both in the URL and the session, the properties in the session will override those in the URL.

For properties only in the session, the properties will be appended to the URL to run the report.

Examples:

For running web reports via JSON

The following rules apply when merging each object from the session and from the URL:

Examples:

For running dashboards via JSON

The following rules apply when merging each object from the session and from the URL:

Examples: