diff options
author | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-09-11 07:11:57 +0000 |
---|---|---|
committer | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-09-11 07:11:57 +0000 |
commit | 015dbf6dcdc56893bc97a062a905e90b1c2ea529 (patch) | |
tree | c4a05fc36c3d2ab5def91f6ae0370a28851c0d39 /src/main/webapp/jsp | |
parent | 3a46eeb47e9025601fc0b651b93ec991aeb6dc65 (diff) | |
download | pdf-as-3-015dbf6dcdc56893bc97a062a905e90b1c2ea529.tar.gz pdf-as-3-015dbf6dcdc56893bc97a062a905e90b1c2ea529.tar.bz2 pdf-as-3-015dbf6dcdc56893bc97a062a905e90b1c2ea529.zip |
Bugfixes
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@339 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/webapp/jsp')
-rw-r--r-- | src/main/webapp/jsp/signupload.jsp | 8 |
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);
|