aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-05-08 13:24:23 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-05-08 13:24:23 +0000
commit3a46eeb47e9025601fc0b651b93ec991aeb6dc65 (patch)
tree5ec0d90828babcaada4217d038cc36e97e6c3f82 /src/main
parentc4efec1daeb50b30d363bb9fb83aec5435dbf2ad (diff)
downloadpdf-as-3-3a46eeb47e9025601fc0b651b93ec991aeb6dc65.tar.gz
pdf-as-3-3a46eeb47e9025601fc0b651b93ec991aeb6dc65.tar.bz2
pdf-as-3-3a46eeb47e9025601fc0b651b93ec991aeb6dc65.zip
Web application bug concerning text reconstruction from form fixed.
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@338 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main')
-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>