DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42409>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42409

           Summary: Extra response headers not sent when using custom error
                    page
           Product: Tomcat 6
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P3
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


If I create a servlet that does the following:

response.setHeader("X-BUG", "Value");
response.sendError(HttpServletResponse.SC_BAD_REQUEST);

If I use the tomcat default error page for 400 responses, the response will
contain the header "X-BUG" with value "Value".

However, if I create a custom error page, the response headers do NOT contain
the "X-BUG" header in the response. 

Here is my web.xml, for example:

<error-page>
    <error-code>400</error-code>
    <location>/400.jsp</location>
</error-page>

400.jsp contains plain html:

<html>
<body>
<h3>Custom 400 error page</h3>
</body>
</html>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to