标签:jsp调用ireport报表 html调用ireport报表 ireport在页面调用
<%@ page language="java" contentType="text/html; charset=UTF-8"<%
//参数获取
String deptId =(String) request.getParameter("deptId");
//调用报表模版
File reportFile = new File(application.getRealPath("/report/RoadPlanExportExcel.jasper"));JasperReport jasperReport = (JasperReport) JRLoader.loadObject(reportFile.getPath());
//向报表传递参数
Map<String,Object> parameters = new HashMap<String,Object>();parameters.put("title", planYear+"XXXXXX项目表--");
//JDBC连接数据源
Connection conn =null;标签:jsp调用ireport报表 html调用ireport报表 ireport在页面调用
原文地址:http://blog.csdn.net/q326527970/article/details/42173531