aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/jsp/error.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/jsp/error.jsp')
-rw-r--r--src/main/webapp/jsp/error.jsp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/webapp/jsp/error.jsp b/src/main/webapp/jsp/error.jsp
index 4bd49a4..bcac0dc 100644
--- a/src/main/webapp/jsp/error.jsp
+++ b/src/main/webapp/jsp/error.jsp
@@ -6,6 +6,7 @@
<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %>
<%@ page import="org.apache.commons.httpclient.util.EncodingUtil" %>
<%@ page import="org.apache.commons.httpclient.NameValuePair" %>
+<%@ page import="at.gv.egiz.pdfas.web.helper.SignServletHelper" %>
<%@ page import="java.io.*" %>
<%@ include file="language.jsp" %>
@@ -16,14 +17,19 @@
<head>
<title><fmt:message key="error.title"/></title>
<base href="<%=LocalRequestHelper.getLocalContextAddress(request,response)%>/"/>
+ <meta http-equiv="Cache-Control" content="no-cache"/>
+ <meta http-equiv="Pragma" content="no-cache"/>
+ <meta http-equiv="Expires" content="-1"/>
</head>
<%
- PresentableException pe = (PresentableException)request.getAttribute("PresentableException");
+ PresentableException pe;
if (exception != null && exception instanceof PresentableException)
{
pe = (PresentableException)exception;
SignServlet.prepareDispatchToErrorPage(pe, request);
+ } else {
+ pe = (PresentableException)request.getAttribute("PresentableException");
}
String error = request.getParameter("error");
@@ -56,6 +62,7 @@
session.setAttribute(SessionAttributes.PARENT_WEBAPP_REDIRECT_URL, errorUrl);
}
String redirectHelper = response.encodeRedirectURL(request.getContextPath() + "/jsp/redirect_to_parent.jsp");
+ SignServletHelper.disableBrowserCacheForResponse(response);
response.sendRedirect(redirectHelper);
}