%@ page isErrorPage="true" %>
<%@ page import="at.gv.egiz.pdfas.web.helper.LocalRequestHelper" %>
<%@ page import="at.gv.egiz.pdfas.web.servlets.SignServlet" %>
<%@ page import="at.knowcenter.wag.egov.egiz.exceptions.PresentableException" %>
<%@ page import="java.io.StringWriter" %>
<%@ page import="java.io.PrintWriter" %>
<%@ 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());
%>
<%= error %>
: <%= cause %>
<%
if (pe != null) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
pe.printStackTrace(pw);
sw.close();
pw.close();
out.print(sw);
}
%>