<%@ page contentType="text/html;charset=GBK"%>
<%
Collection coll = (Collection) request.getAttribute("putinReportList"); //putinReportList是由请求传来的LIST
//设置数据库JDBC连接
JRBeanCollectionDataSource con = new JRBeanCollectionDataSource(
coll);
//设置外部参数对
Map parameters = new HashMap();
//parameters.put("rptToday", "2008-01-11");
//parameters.put("rptMan", "sterning"); PDFExport exportReport = new PDFExport();
exportReport.exportToPDF(request, response, out, request
.getRealPath("/reports/putin_report.jrxml"), request
.getRealPath("/reports/putin_report.jasper"), parameters,
con);
out.clear();
out=pageContext.pushBody();
%>