【问题标题】:Can't embed Birt report into JSP无法将 Birt 报告嵌入 JSP
【发布时间】:2015-02-10 23:10:44
【问题描述】:

我设置了下一个代码以获取 html 格式的 birt 报告并将其显示在框架上:

<%@ 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>

但我收到此错误:

Estado HTTP 404 - /proyect/frameset

输入通知国家

mensaje /proyect/frameset

注意:如果我直接从 Birt 运行报告,则查看器运行良好。

【问题讨论】:

  • 你为什么使用 CAPS RAGE?

标签: java html jsp birt


【解决方案1】:

iframe 可以这样工作

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

【讨论】:

    猜你喜欢
    • 2013-12-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-15
    • 2018-12-29
    • 2011-10-17
    相关资源
    最近更新 更多