<report:html name="report1" reportFileName="<%=report%>"
funcBarLocation="top"
params="<%=params.toString()%>"
exceptionPage="/jsp/2/2.1/2.1.2/exception.jsp" //直接在些处定义就行
/>
例:
<%@ page contentType="text/html;charset=GBK" isErrorPage="true" %>
<html>
<title>报表异常信息</title>
<body>
<% if(exception!=null){
//jsp等程序运行出错时,采用应用服务器的errorPage机制来处理,此乃J2EE标准
out.println("<div style='color:red'>" + exception + "</div>");
}else{
//仅处理报表运行出错
Throwable e = ( Throwable ) request.getAttribute( "exception" );
out.println( "<div style='color:red'>" + e.getMessage() + "</div>" );
}
%>
</body>
</html>
funcBarLocation="top"
params="<%=params.toString()%>"
exceptionPage="/jsp/2/2.1/2.1.2/exception.jsp" //直接在些处定义就行
/>
例:
<%@ page contentType="text/html;charset=GBK" isErrorPage="true" %>
<html>
<title>报表异常信息</title>
<body>
<% if(exception!=null){
//jsp等程序运行出错时,采用应用服务器的errorPage机制来处理,此乃J2EE标准
out.println("<div style='color:red'>" + exception + "</div>");
}else{
//仅处理报表运行出错
Throwable e = ( Throwable ) request.getAttribute( "exception" );
out.println( "<div style='color:red'>" + e.getMessage() + "</div>" );
}
%>
</body>
</html>