"Fossies" - the Fresh Open Source Software Archive

Member "wildfly-18.0.1.Final-src/testsuite/integration/web/src/test/java/org/jboss/as/test/integration/web/customerrors/resources/500.jsp" (10 May 2019, 298 Bytes) of package /linux/www/wildfly-18.0.1.Final-src.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JavaServer Pages source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <%@ page isErrorPage="true"%>
    2 <%
    3     Throwable error = (Throwable) request.getAttribute("javax.servlet.error.exception");
    4     response.setHeader("X-CustomErrorPage", "500.jsp");
    5     if (error != null)
    6         response.setHeader("X-ExceptionType", error.getClass().getName());
    7 %>
    8 <h1>500 Error</h1>