<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage=""%> <%@ page import="java.util.Locale" %> <%@ page import="at.gv.egiz.pdfas.api.commons.Constants" %> <%@ page import="at.gv.egiz.pdfas.web.session.VerifySessionInformation"%> <%@ page import="at.gv.egiz.pdfas.web.session.SignSessionInformation" %> <%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %> <%@ page import="at.gv.egiz.pdfas.web.FormFields" %> <%@ page import="at.gv.egiz.pdfas.web.servlets.SignServlet" %> <%@ page import="at.gv.egiz.pdfas.web.helper.LocalRequestHelper" %> <%@ include file="language.jsp" %> <% String serverUrl=LocalRequestHelper.getLocalServerAddress(request,response); String baseUrl=LocalRequestHelper.getLocalContextAddress(request,response); String local_request_url = (String)request.getAttribute("local_request_url"); String data_url = (String) request.getAttribute("data_url"); HttpSessionBindingListener si = (HttpSessionBindingListener) session.getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION); boolean isExternalInvocation = false; boolean isServerBKU = false; boolean isLocalBKU = false; boolean isMobileBKU = false; boolean isMobileTest = false; SignSessionInformation ssi = null; if (si instanceof SignSessionInformation) { ssi = (SignSessionInformation) si; isExternalInvocation = ssi.exappinf != null; isServerBKU = Constants.SIGNATURE_DEVICE_MOC.equals(ssi.connector); isLocalBKU = Constants.SIGNATURE_DEVICE_BKU.equals(ssi.connector); isMobileBKU = Constants.SIGNATURE_DEVICE_MOBILE.equals(ssi.connector); isMobileTest = Constants.SIGNATURE_DEVICE_MOBILETEST.equals(ssi.connector); } else if (si instanceof VerifySessionInformation) { VerifySessionInformation vsi = (VerifySessionInformation) si; isExternalInvocation = vsi.exappinf != null; isServerBKU = Constants.SIGNATURE_DEVICE_MOC.equals(vsi.connector); isLocalBKU = Constants.SIGNATURE_DEVICE_BKU.equals(vsi.connector); isMobileBKU = Constants.SIGNATURE_DEVICE_MOBILE.equals(vsi.connector); isMobileTest = Constants.SIGNATURE_DEVICE_MOBILETEST.equals(vsi.connector); } boolean testMode = request.getContextPath().startsWith("/test-"); //Check if application is started within an iframe from an extern application boolean startedFromIFrame = false; String extern = (String)session.getAttribute("extern"); if (extern!=null) { if (extern.equals("yes")) { startedFromIFrame = true; } } // boolean german=true; String language = (String)session.getAttribute(SessionAttributes.LANGUAGE); if (language!=null) { if (language.equals("de")) { %> <% } else { german = false; %> <% } } else { %> <% } String height = (String)session.getAttribute(SignServlet.HEIGHT_SIGN_DIV); %> <% //buergerkarte.at Template has to be shown in some cases if ((isLocalBKU || isExternalInvocation) && (!startedFromIFrame)) { if (german) { %> <% } else { %> <% } %> <% } %> <fmt:message key="nullrequestpage.title"/> <% if (!startedFromIFrame) { %> <% } else { %> <% } %> <% //If whole application is not started from an IFrame within an external application (normal execution) if (!startedFromIFrame) { %> <% if (isServerBKU) { %>
<% if (language != null) { %> <% } // end if %>
<% if (!isExternalInvocation) { %> <% } else { %> <% } %>
<% } if (isMobileBKU) { %>
<% if (language != null) { %> <% } // end if %>
<% if (!isExternalInvocation) { %> <% } else { %> <% } %>
<% // if Mobiletest %> <% } if (isMobileTest) { %>
<% if (language != null) { %> <% } // end if %>
<% if (!isExternalInvocation) { %> <% } else { %> <% } %>
<% } //If local BKU is choosed the whole page has to be shown if (isLocalBKU) { if (!isExternalInvocation) { %>

<% if (testMode) { %> <% } else { %> <% } // end if %>

<% } %> <% if (isExternalInvocation) { %>
<% } else { %>
<% } // end if %>
Handy
" alt="Signatur mit Handy" onclick="return submitForm(this)" disabled="disabled">
<% } %> <% } //If the application is called within an IFrame from an external application the //display has to be different else { %>
<% if (isServerBKU) { %>
<% if (language != null) { %> <% } // end if %>
Alternativ dazu wählen Sie eine lokale BKU
<% } if (isMobileBKU) { %>
<% if (language != null) { %> <% } // end if %>
<% } if (isLocalBKU) { %>
<% if (language != null) { %> <% } // end if %> <% if (language !=null) { %> <% if (language.equals("de")) { %> <% } else { %> <% } %> <% } else { %> <% } %>
<% } %>
<% } %>