aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/jsp/null_request_page.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/jsp/null_request_page.jsp')
-rw-r--r--src/main/webapp/jsp/null_request_page.jsp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/main/webapp/jsp/null_request_page.jsp b/src/main/webapp/jsp/null_request_page.jsp
index 7f60325..28ff188 100644
--- a/src/main/webapp/jsp/null_request_page.jsp
+++ b/src/main/webapp/jsp/null_request_page.jsp
@@ -8,13 +8,23 @@
<%
String local_request_url = (String)request.getAttribute("local_request_url");
String data_url = (String) request.getAttribute("data_url");
- SignSessionInformation si = (SignSessionInformation) session.getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION);
+ HttpSessionBindingListener si = (HttpSessionBindingListener) session.getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION);
Locale locale = (Locale) session.getAttribute(LocaleParamFilter.LOCALE_SESSION_KEY);
- boolean isExternalInvocation = (si != null && si.exappinf != null);
- boolean isServerBKU = Constants.SIGNATURE_DEVICE_MOC.equals(si.connector);
+ boolean isExternalInvocation = false;
+ boolean isServerBKU = false;
+ if (si instanceof SignSessionInformation) {
+ SignSessionInformation ssi = (SignSessionInformation) si;
+ isExternalInvocation = ssi.exappinf != null;
+ isServerBKU = Constants.SIGNATURE_DEVICE_MOC.equals(ssi.connector);
+ } else {
+ VerifySessionInformation vsi = (VerifySessionInformation) si;
+ isExternalInvocation = vsi.exappinf != null;
+ isServerBKU = Constants.SIGNATURE_DEVICE_MOC.equals(vsi.connector);
+ }
%>
-<html>
+
+<%@page import="at.gv.egiz.pdfas.web.VerifySessionInformation"%><html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title><fmt:message key="nullrequestpage.title"/></title>