From 015dbf6dcdc56893bc97a062a905e90b1c2ea529 Mon Sep 17 00:00:00 2001 From: tknall Date: Fri, 11 Sep 2009 07:11:57 +0000 Subject: Bugfixes git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@339 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/webapp/jsp/signupload.jsp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main/webapp') diff --git a/src/main/webapp/jsp/signupload.jsp b/src/main/webapp/jsp/signupload.jsp index f372ecf..526d2c1 100644 --- a/src/main/webapp/jsp/signupload.jsp +++ b/src/main/webapp/jsp/signupload.jsp @@ -56,20 +56,24 @@ --> <% + // PRESETS + // signature device String device = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_DEVICE_KEY); if (device == null) { - device = Constants.SIGNATURE_DEVICE_MOC; + device = Constants.SIGNATURE_DEVICE_BKU; session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_DEVICE_KEY, device); } + // signature mode 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; + mode = FormFields.VALUE_MODE_BINARY; session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY, mode); } + // signature type String type = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_TYPE_KEY); if (type == null) { Locale locale = (Locale) session.getAttribute(LocaleParamFilter.LOCALE_SESSION_KEY); -- cgit v1.2.3