错误404在Eclipse的JSP页面中查看BIRT报告

问题描述 投票:0回答:1

[The BIRT documentation之后,我试图在JSP中运行BIRT报告几乎所有内容都可以正常工作:可以在预览中正确查看该报告,但是当我尝试运行该项目并在JSP中显示该报告时,发现未找到404错误。web.xml:


    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="4.0"
        xmlns="http://xmlns.jcp.org/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
        <display-name>MktPortal</display-name>
        <welcome-file-list>
            <welcome-file>index.html</welcome-file>
            <welcome-file>index.htm</welcome-file>
            <welcome-file>index.jsp</welcome-file>
            <welcome-file>default.html</welcome-file>
            <welcome-file>default.htm</welcome-file>
            <welcome-file>default.jsp</welcome-file>
        </welcome-file-list>
        <jsp-config>
            <taglib>
                <taglib-uri>/birt.tld</taglib-uri>
                <taglib-location>/WEB-INF/tlds/birt.tld</taglib-location>
            </taglib>
        </jsp-config>
    </web-app>

theviewReport.jsp:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/birt.tld" prefix="birt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                       "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
    <birt:viewer id="birtViewer" reportDesign="v_venditedispre.rptdesign"
        pattern="frameset" height="450" width="700" format="html">
    </birt:viewer>
</body>
</html>

这是错误:404 error

java jsp http-status-code-404 birt
1个回答
0
投票

BIRT将需要BIRT运行时来呈现rptdesign文件。您正在使用的Taglib不包含运行时本身。

© www.soinside.com 2019 - 2024. All rights reserved.