In some circumstances you may want to change the server context path for accessing JReport Server console and running JReport reports. This section introduces how to do this in a standalone or an integrated environment.
After the context path is changed, when working on JReport Server via URLs, the new context path should be used in the URLs.
JReport has the following URL configuration for accessing JReport Server console and running JReport reports in a standalone environment:
http://<hostname>:8888/jrserver
http://<hostname>:8888/jinfonet/index.jsp
http://<hostname>:8888/dhtmljsp/...
http://localhost:8888/jinfonet/tryView.jsp?&jrs.report=%2fSampleReports%2fSales Detail Report.wls&jrs.catalog=%2fSampleReports%2fSampleReports.cat&jrs.result_type=8
http://localhost:8888/webos/app/pagestudio/run.jsp?jrs.report=%2fSampleReports%2fCorporate Overview.cls&jrs.catalog=%2fSampleReports%2fSampleReports.cat
You may want to change the server context path to /jrp
and the URLs will be:
http://<hostname>:8888/jrp/jrserver
http://<hostname>:8888/jrp/jinfonet/index.jsp
http://<hostname>:8888/jrp/dhtmljsp/...
http://localhost:8888/jrp/jinfonet/tryView.jsp?&jrs.report=%2fSampleReports%2fSales Detail Report.wls&jrs.catalog=%2fSampleReports%2fSampleReports.cat&jrs.result_type=8
http://localhost:8888/jrp/webos/app/pagestudio/run.jsp?jrs.report=%2fSampleReports%2fCorporate Overview.cls&jrs.catalog=%2fSampleReports%2fSampleReports.cat
To do this:
<install_root>\public_html
to <install_root>\public_html\jrp
.<install>\bin
directory by adding "/jrp":
web.design_servlet_path=/jrp/webreporting
web.dhtml_jsp_path=/jrp/dhtmljsp
web.dhtml_servlet_path=/jrp/dhtml
web.help_servlet_path=/jrp/help
web.jreport_servlet_path=/jrp/jrserver
web.skin.dir=/jrp/skin
<install>\bin
directory by adding "/jrp":
jsp_path=/jrp/jinfonet/
<install>\bin
directory by adding "/jrp":
|
http://localhost:8888/jrp/jrserver
http://localhost:8888/jrp/jinfonet/index.jsp
Run a report in Page Report Studio by the URL:
http://localhost:8888/jrp/webos/app/pagestudio/run.jsp?jrs.catalog=%2fSampleReports%2fSampleReports.cat&jrs.report=%2fSampleReports%2fEmployee Information List.cls
Supposing that all server resources are deployed to the context root folder jreport\ after deploying JReport Server to an application server.
You can use the following URLs for accessing JReport Server service console and running JReport reports in the integrated environment:
http://<hostname>:port/jreport/jinfonet/index.jsp
http://<hostname>:port/jreport/dhtmljsp/...
http://localhost:8888/jreport/jinfonet/tryView.jsp?&jrs.report=%2fSampleReports%2fSales Detail Report.wls&jrs.catalog=%2fSampleReports%2fSampleReports.cat&jrs.result_type=8
http://localhost:8888/jreport/webos/app/pagestudio/run.jsp?jrs.report=%2fSampleReports%2fCorporate Overview.cls&jrs.catalog=%2fSampleReports%2fSampleReports.cat
You may want to change the server context path to /jreport/myjsp and the URLs will be
:
http://<hostname>:port/jreport/myjsp/jinfonet/index.jsp
http://<hostname>:port/jreport/myjsp/dhtmljsp/...
http://localhost:8888/jreport/myjsp/jinfonet/tryView.jsp?&jrs.report=%2fSampleReports%2fSales Detail Report.wls&jrs.catalog=%2fSampleReports%2fSampleReports.cat&jrs.result_type=8
http://localhost:8888/jreport/myjsp/webos/app/pagestudio/run.jsp?jrs.report=%2fSampleReports%2fCorporate Overview.cls&jrs.catalog=%2fSampleReports%2fSampleReports.cat
To do this:
jreport\
to jreport\myjsp\
:
admin
dhtmljsp
images
javascript
jinfonet
skin
style
web.skin.dir=/myjsp/skin
web.dhtml_jsp_path=/myjsp/dhtmljsp
http://<hostname>:port/jreport/myjsp/jinfonet/index.jsp
Run a report in Page Report Studio by the URL:
http://<hostname>:port/jreport/myjsp/webos/app/pagestudio/run.jsp?jrs.catalog=%2fSampleReports%2fSampleReports.cat&jrs.report=%2fSampleReports%2fEmployee Information List.cls