diff options
Diffstat (limited to 'src/main/webapp/jsp')
-rw-r--r-- | src/main/webapp/jsp/error.jsp | 9 | ||||
-rw-r--r-- | src/main/webapp/jsp/redirect_to_parent.jsp | 13 |
2 files changed, 19 insertions, 3 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);
}
diff --git a/src/main/webapp/jsp/redirect_to_parent.jsp b/src/main/webapp/jsp/redirect_to_parent.jsp index 7791109..6bce9f6 100644 --- a/src/main/webapp/jsp/redirect_to_parent.jsp +++ b/src/main/webapp/jsp/redirect_to_parent.jsp @@ -5,7 +5,10 @@ <%@ include file="language.jsp" %>
<head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="Cache-Control" content="no-cache"/>
+ <meta http-equiv="Pragma" content="no-cache"/>
+ <meta http-equiv="Expires" content="-1"/>
<title><fmt:message key="pleasewait.title"/></title>
<%
String query = (String) session.getAttribute(SessionAttributes.PARENT_WEBAPP_REDIRECT_URL);
@@ -14,7 +17,13 @@ </head>
<body>
- <form action="<%= query %>" method="post" name="redirectform" id="redirectform" target="_parent">
+ <form action="<%= query %>" method="post" name="redirectform" id="redirectform" target="_top">
+ <!--
+ <p>Redirecting the browser to</p>
+ <p><code><%= query %></code></p>
+ <p>Session-ID: <code><%= session.getId() %></code></p>
+ <input type="submit" value="submit"/>
+ -->
</form>
<script language="javascript" type="text/javascript">
<!--
|