Running reports via URL

There are two ways you can use to run reports via URLs: JSP and servlet. Detailed JSP and servlet parameters are introduced in Appendix 7: Parameters for running reports via URL.

All the JSP and servlet methods introduced below are applicable to page reports. For web reports, only the server JSP and Servlet methods are applicable, while only tryView.jsp can be used to run web reports in Web Report Studio and the other methods can only be used to run web reports to other formats other than to Web Report Studio.

Using JSPs

Two server JSPs:

One Page Report Studio JSP:

The image below illustrates the relationship between these JSPs:

Using servlet

Server servlet

The server servlet can be used to run page reports to any allowed formats and run web reports to formats other than in Web Report Studio.

Call the servlet jrserver. For example, run the page report in Page Report Studio:

http://localhost:8888/jrserver/SampleReports/SampleReports.cat/EmployeeInformation.cls?jrs.cmd=jrs.web_vw&jrs.result_type=8

This request will be redirected to /dhtmljsp/dhtml.jsp with the following parameters:

jrs.catalog=/SampleReports/SampleReports.cat

jrs.report=/SampleReports/EmployeeInformation.cls

Run a web report to HTML:

http://localhost:8888/jrserver/SampleReports/SampleReports.cat/Link.wls?jrs.cmd=jrs.web_vw&jrs.result_type=1

Page Report Studio servlet

The Page Report Studio servlet jrdhtml is used to run a page report in Page Report Studio specifically, and you needn't to specify the format type compared to the server servlet.

Examples:

Tip: When running reports to the PDF format via URL, you can encrypt the PDF results by using the encrypting PDF properties.

Below are some more specific examples about running reports via URL:

Related topics: