From 3d982813b34f6f230baf4a467cdc37ec92a77595 Mon Sep 17 00:00:00 2001 From: netconomy Date: Fri, 17 Aug 2007 06:10:56 +0000 Subject: Performance git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@167 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- webapp/jsp/error.jsp | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'webapp/jsp/error.jsp') 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.*" %> @@ -7,10 +11,17 @@ -<% +<% + 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()); - %> +%>

PDF-AS Amtssignaturen

@@ -24,5 +35,18 @@
Weiter...
+
+<%
+  if (pe != null)
+  {
+    StringWriter sw = new StringWriter();
+    PrintWriter pw = new PrintWriter(sw);
+    pe.printStackTrace(pw);
+    sw.close();
+    pw.close();
+    out.print(sw);
+  }
+%>
+
\ No newline at end of file -- cgit v1.2.3