%@ page session="false" isErrorPage="true" contentType="text/html" import=" org.opencms.jsp.util.* "%><% // initialize instance of status bean CmsJspStatusBean cms = new CmsJspStatusBean(pageContext, request, response, exception); // get the template to use String template = cms.property("template", "search", "/system/handler/template/handlertemplate"); // include the template head part cms.includeTemplatePart(template, "head"); %> <%= cms.getPageContent("head") %>
<%= cms.keyStatus("error_description") %>
<% if (cms.showException() && cms.getErrorMessage() != null) { // print the error message for developers, if available out.print("" + cms.getErrorMessage() + "
"); } if (cms.showException() && cms.getException() != null) { // print the exception for developers, if available %><%= cms.getException() %>
<% cms.getException().printStackTrace(new java.io.PrintWriter(out)); %><% } %> <%= cms.getPageContent("foot") %> <% // include the template foot part cms.includeTemplatePart(template, "foot"); // set the original error status code for the returned page Integer status = cms.getStatusCode(); if (status != null) { cms.setStatus(status.intValue()); } %>