2015-02-10 64 views
1

我設置GET BIRT報表的下一個代碼的HTML格式和幀顯示它:不能嵌入BIRT報表到JSP

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" language="java" errorPage="error.jsp"%> 
<%@ taglib uri="/birt.tld" prefix="birt" %> 

<html> 
<head> 
    <title>Seguimiento</title> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    <link rel='stylesheet' type='text/css' href='../js/jquery-1.7.2/css/custom-theme/jquery-ui-1.7.2.custom.css' /> 
    <script type='text/javascript' src='../js/jquery-1.7.2/js/jquery-1.3.2.min.js'></script> 
    <script type='text/javascript' src='../js/jquery-1.7.2/js/jquery-ui-1.7.2.custom.min.js'></script> 
</head> 
<body> 
<p>Show report</p> 
<birt:viewer id="birtViewer" reportDesign="localhost:9080/WebViewerExample/demo_reporte.rptdesign" 
pattern="frameset" 
height="450" 
width="700" 
format="html" 
></birt:viewer> 
</body> 
</html> 

,但我得到這個錯誤:

埃斯塔HTTP 404 -/proyect /框架

類型Informe德埃斯塔

mensaje/proyect /框架

注意:如果我直接從Birt運行報表,查看器可以完美運行。

+0

爲何使用CAPS RAGE? – martijnn2008 2015-02-10 23:29:31

回答

0

一個iframe可以這樣工作

<iframe name="birtReport" src="http://localhost:9080/WebViewerExample/run?__report=demo_reporte.rptdesign&amp;__format=html" width="700" height="450"/>