0

我正在使用ZK 6.0.1JasperReports 4.1.1

我得到了这个糟糕的结果

HTTP Status 410 - /view/z_b72/eMvPx1/gvv/0/D:/wrk/.html - <Jasperreport eMvPx1> not found.

type Status report

message /view/z_b72/eMvPx1/gvv/0/D:/wrk/.html - <Jasperreport eMvPx1> not found.

description The requested resource is no longer available, and no forwarding address is known.
Apache Tomcat/7.0.34

我认为它似乎找不到您的 .jasper 文件

这是我的java代码:

String path=Sessions.getCurrent().getWebApp().getRealPath("/WEB-INF/report/cobaReport.jasper");
Jasperreport rpt=new Jasperreport();
List<AccountGroup> accountGroups;
accountGroups = masterCoaManager.findAllAccg();
Map parameters = new HashMap();
parameters.put("terranTitle", "Hoax");
parameters.put("terranDataSource", new AccountGroupDataSource(accountGroups));

rpt.setSrc(path);
rpt.setParameters(parameters);
rpt.setType("html");
divReport.appendChild(rpt);

谢谢大家

4

1 回答 1

0

参见ZK Web 应用程序中 Jasper Report 的集成

于 2013-02-05T05:10:34.063 回答