### Viewing by typing URLs

You can use DHTML servlet or JSPs to run a DHTML report set.

#### Using DHTML servlet

You can call the servlet jrdhtml via URLs to run a report set to the DHTML format. For example:

- `http://localhost:8888/jrdhtml/SampleReports/SampleReports.cat/EmployeeInformation.cls?`
- `http://localhost:8888/jrdhtml/SampleReports/SampleReports.cat/EmployeeInformation.cls?
  jrs.catalog=/SampleReports/SampleReports.cat&jrs.path=/SampleReports.cat/EmployeeInformation.cls`

#### Using JSPs

You can use three JSPs to run a report set to the DHTML format. They are two Server JSPs, tryView.jsp and runReport.jsp, and a DHTML JSP dhtml.jsp.

The image below illustrates the relationship between these JSPs that are used to run the DHTML report sets:

tryView.jsp

This is the normal method of accessing report sets using URLs. If the report set has parameters and the parameters provided in the URL fail to include all necessary parameters, the Enter Parameter Values dialog will be shown for you to specify parameters, otherwise it will directly go to runReport.jsp. Then it will be redirected to dhtml.jsp when result type is set to the DHTML format, or else will run to the specified format if the result type is set to other format.

The following is an example of running a report set to the DHTML format using tryView.jsp:

`http://localhost:8888/jinfonet/tryView.jsp?jrs.cmd=jrs.try_vw&jrs.report=
%2fSampleReports%2fEmployeeInformation.cls&jrs.catalog=%2fSampleReports%2fSampleReports.cat&jrs.result_type=8`

runReport.jsp

The runReport.jsp functions the same as tryView.jsp when the report set has no parameter. When it has parameters, the report set runs with the default parameters if no parameter is specified, or else it runs with the parameters specified in the URL.

To run a report set to the DHTML format using runReport.jsp, specify the DHTML format as the result type. See the following example:

`http://localhost:8888/jinfonet/runReport.jsp?jrs.cmd=jrs.web_vw&jrs.report=
%2fSampleReports%2fEmployeeInformation.cls&jrs.catalog=%2fSampleReports%2fSampleReports.cat&jrs.result_type=8`

dhtml.jsp

If you want to include the DHTML JSPs into your own application without other server JSPs, you can use this method. However, you must specify the report parameter values in the URL if there are parameters used by the report set. For example:

`http://localhost:8888/dhtmljsp/dhtml.jsp?jrs.catalog=%2fSampleReports%2fSampleReports.cat&jrs.report
=%2fSampleReports%2fEmployeeInformation.cls`

Tip: When you run a report set in DHTML using URL, if you want JReport to automatically refresh the report data at certain interval, you can set the URL as follows:

`http://localhost:8888/dhtmljsp/dhtml.jsp?jrs.report=/USERFOLDERPATH/admin/AutoRefresh/autorefresh.cls&jrs.catalog=
/USERFOLDERPATH/admin/AutoRefresh/testauto.cat&jrs.auto_refresh_data=true&jrs.auto_refresh_data_time=10`