<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %> <%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %> <%@ page import="at.gv.egiz.pdfas.api.commons.Constants" %> <%@ page import="at.gv.egiz.pdfas.web.i18n.LanguageDecoratorMapper"%> <%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.UpdateFormServlet"%> <%@ include file="language.jsp" %> <% boolean testMode = request.getContextPath().startsWith("/test-"); boolean forceTextualForMocca = true; %> <% if (testMode) { %> <fmt:message key="test.common.title"/> <% } else { %> <fmt:message key="common.title"/> <% } // end if %> <% session.removeAttribute(SessionAttributes.SIGNED_PDF_DOCUMENT); %> <% String device = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_DEVICE_KEY); if (device == null) { device = Constants.SIGNATURE_DEVICE_MOC; session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_DEVICE_KEY, device); } String mode = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY); if (forceTextualForMocca && Constants.SIGNATURE_DEVICE_MOC.equals(device)) { mode = FormFields.VALUE_MODE_TEXTUAL; session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY, mode); } if (mode == null) { mode = FormFields.VALUE_MODE_TEXTUAL; session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY, mode); } String type = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_TYPE_KEY); if (type == null) { Locale locale = (Locale) session.getAttribute(LocaleParamFilter.LOCALE_SESSION_KEY); if (locale == null) { locale = request.getLocale(); } type = Locale.GERMAN.getLanguage().equals(locale.getLanguage()) ? "SIGNATURBLOCK_DE" : "SIGNATURBLOCK_EN"; session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_TYPE_KEY, type); } %>

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

<% if (forceTextualForMocca && Constants.SIGNATURE_DEVICE_MOC.equals(device)) {%> <% } else { %> <% } %>
:
<% if (Constants.SIGNATURE_DEVICE_BKU.equals(device)) { %>
<% } else if (Constants.SIGNATURE_DEVICE_MOC.equals(device)) { %>
<fmt:message key="/>
<% } else { %>
<% } // end if %>
" onclick="return submitForm(false);"/> " onclick="return submitForm(true);"/>