tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5318] New: - Default error page processing broken.
Date Fri, 07 Dec 2001 15:33:00 GMT
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:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message