From 3a46eeb47e9025601fc0b651b93ec991aeb6dc65 Mon Sep 17 00:00:00 2001 From: tknall Date: Fri, 8 May 2009 13:24:23 +0000 Subject: 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 --- src/main/webapp/jsp/null_request_page.jsp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/main/webapp') 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); + } %> - + +<%@page import="at.gv.egiz.pdfas.web.VerifySessionInformation"%> <fmt:message key="nullrequestpage.title"/> -- cgit v1.2.3