我正在使用 ZK 6.0.1 和 JasperReports 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);
感谢所有