jsp中根据iframe框架加载报表,需要开发指南中的Servlet方式来加载报表。采用Get或Post 方式的url请求ReportEmitter ,并在后面拼接请求的内置参数名称和值,参数之间用“&”符号连接。例如:http://IP地址:服务器端口/web 路径/ReportEmitter?rpt=Demo/参数报表/ 时间参数.brt¶ms=year=1997;area= 华南区。
<%@page contentType="text/html; charset=gbk"%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
</head>
<body >
<iframe src="http://localhost:8080/report/ReportEmitter?rpt=Demo/参数报表/ 时间参数.brt¶ms=year=1997;area= 华南区">
</body>
</html>