%@ 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 {
VerifySessionInformation vsi = (VerifySessionInformation) si;
isExternalInvocation = vsi.exappinf != null;
isServerBKU = Constants.SIGNATURE_DEVICE_MOC.equals(vsi.connector);
isLocalBKU = Constants.SIGNATURE_DEVICE_BKU.equals(ssi.connector);
isMobileBKU = Constants.SIGNATURE_DEVICE_MOBILE.equals(ssi.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")) { %>