From 29ad090c29567ff1a4d3a2ec9b8ad0b5d80ee24d Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 6 Dec 2010 16:34:52 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@671 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- pdf-as-web/src/main/webapp/jsp/error_verify.jsp | 51 +++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pdf-as-web/src/main/webapp/jsp/error_verify.jsp (limited to 'pdf-as-web/src/main/webapp/jsp/error_verify.jsp') diff --git a/pdf-as-web/src/main/webapp/jsp/error_verify.jsp b/pdf-as-web/src/main/webapp/jsp/error_verify.jsp new file mode 100644 index 0000000..79c5bbd --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/error_verify.jsp @@ -0,0 +1,51 @@ +<%@ 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" %> + + + + + + <fmt:message key="errorverify.title"/> + + + +<% + 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);
+		  }
+		%>
+		
+ + + -- cgit v1.2.3