You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/12/07 16:33:00 UTC
DO NOT REPLY [Bug 5318] New: -
Default error page processing broken.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5318>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5318
Default error page processing broken.
Summary: Default error page processing broken.
Product: Tomcat 4
Version: Nightly Build
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: pduffin@volantis.com
If an uncaught exception is thrown in a page and no error page was specified
then the default error page should be used but it doesn't seem to be working
properly and you get a "The document contained no data" error from Netscape.
The following pages can be used to reproduce the problem.
The nightly build I am using is 20011205.
--- UncaughtException.jsp begins here ---
<%--
<%@ page errorPage="SimpleErrorPage.jsp" %>
--%>
<%@ taglib uri="WEB-INF/taglibs/simple.tld" prefix="vt" %>
<%-- ==========================================================================
% This page tests what happens when an error occurs in the page but no error
% page is specified.
% ======================================================================= --%>
<%
if (true) {
throw new NullPointerException ("Invalid page");
}
%>
--- end ---
--- SimpleErrorPage.jsp begins here ---
<%@ page isErrorPage="true" %>
Error page
<% System.out.println ("Simple error page"); %>
--- end ---
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>