<%@ page session="false" isErrorPage="true" contentType="text/html" import="org.opencms.jsp.util.*,org.opencms.file.*,org.opencms.site.*,org.opencms.util.*,org.opencms.main.*,org.apache.commons.logging.*,org.opencms.flex.*"%><% // initialize instance of status bean CmsJspStatusBean cms = new CmsJspStatusBean(pageContext, request, response, exception); // try to forward to the configured error page of the currently requested site boolean forwarded = false; CmsSite site = OpenCms.getSiteManager().getSiteForSiteRoot(cms.getSiteRoot()); if (site != null && site.getErrorPage() != null) { forwarded = cms.forwardToErrorPage(site.getErrorPage()); } // use the traditional error page mechanism if not forwarded if (!forwarded) { // 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.key("error_message_servererror") %>

<%= cms.keyStatus("error_message") %>

<%= 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"); // write the exception to the opencms.log, if present cms.logException(); // set the original error status code for the returned page Integer status = cms.getStatusCode(); if (status != null) { cms.setStatus(status.intValue()); } } %>