我正在使用JasperReports作爲Web應用程序的報告工具。 (JSP + Servlets)如何在jasper報告中傳遞SUBREPORT_DIR
我開發了一個名爲Cust
的Report
,它有Sub Report
名爲CustSub
。我試圖在tomcat服務器上部署這個報告(位於不同的機器上)。
有參數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 Report
命名爲CustSub
?