aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/jsp/signupload.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/jsp/signupload.jsp')
-rw-r--r--src/main/webapp/jsp/signupload.jsp8
1 files changed, 6 insertions, 2 deletions
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 @@
-->
</script>
<%
+ // 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);