aboutsummaryrefslogtreecommitdiff
path: root/webapp/jsp/error.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/jsp/error.jsp')
-rw-r--r--webapp/jsp/error.jsp28
1 files changed, 26 insertions, 2 deletions
diff --git a/webapp/jsp/error.jsp b/webapp/jsp/error.jsp
index e0e0954..90120b6 100644
--- a/webapp/jsp/error.jsp
+++ b/webapp/jsp/error.jsp
@@ -1,4 +1,8 @@
+<%@ 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.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
@@ -7,10 +11,17 @@
<link rel="stylesheet" type="text/css" href="<%=LocalRequestHelper.getLocalServerAddress(request,response)%>pdf-as/css/styles.css" />
</head>
<body>
-<%
+<%
+ 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());
- %>
+%>
<div class="maindiv">
<h1>PDF-AS Amtssignaturen</h1>
<div class="mainframe">
@@ -24,5 +35,18 @@
</div>
<a class="big" href="<%=LocalRequestHelper.getLocalServerAddress(request,response)%>pdf-as/">Weiter...</a>
</div>
+<pre style="display:none">
+<%
+ if (pe != null)
+ {
+ StringWriter sw = new StringWriter();
+ PrintWriter pw = new PrintWriter(sw);
+ pe.printStackTrace(pw);
+ sw.close();
+ pw.close();
+ out.print(sw);
+ }
+%>
+</pre>
</body>
</html> \ No newline at end of file