%@ page isErrorPage="true" %>
<%@ page import="at.knowcenter.wag.egov.egiz.web.LocalRequestHelper" %>
<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.SignServlet" %>
<%@ page import="at.knowcenter.wag.egov.egiz.exceptions.*" %>
<%@ page import="java.io.*" %>
<%@ include file="language.jsp" %>
<%
PresentableException pe = (PresentableException)request.getAttribute("PresentableException");
if (exception != null && exception instanceof PresentableException)
{
pe = (PresentableException)exception;
SignServlet.prepareDispatchToErrorPage(pe, request);
}
String error = (request.getAttribute("error") == null ? "" : request.getAttribute("error").toString());
String cause = (request.getAttribute("cause") == null ? "" : request.getAttribute("cause").toString());
boolean rb = Boolean.TRUE.equals((Boolean) request.getAttribute("resourcebundle"));
%>
<% if (rb) { %>
<% } else { out.write(error); } %>
:
<% if (rb) { %>
<% } else { out.write(cause); } %>
<%
if (pe != null) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
pe.printStackTrace(pw);
sw.close();
pw.close();
out.print(sw);
}
%>