我使用JasperReports作为 Web 应用程序的报告工具。(JSP + 小服务程序)
我开发了一个Report名为. 我正在尝试将此报告部署在 tomcat 服务器上(位于不同的机器上)。CustSub ReportCustSub
Cust调用SUBREPORT_DIR中有一个具有值的参数"H:\\reports\\CustomerReport\\",当我从中运行报告时,此配置有效local tomcat server,但是当我尝试运行此报告时,remote tomcat server它会给出以下异常。
Resource Not Found, CustSub.jasper
所以我认为它没有找到Sub Report命名的CustSub.
我尝试使用以下两个参数SUBREPORT_DIR,但它不起作用。
SUBREPORT_DIR = "./"
AND
SUBREPORT_DIR = "com/mycomp/myapp/reports/"
那么我应该如何传递SUBREPORT_DIR给Sub Reportnamed as CustSub?