aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web
diff options
context:
space:
mode:
authorrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-10-06 10:59:22 +0000
committerrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-10-06 10:59:22 +0000
commit78c6b0e57cd3bda51254384a98006ebc6983d52e (patch)
tree6939375a8c2ab53a8272a812f3dd4bab128c033c /pdf-as-web
parent94c7b5a45e9fb197b36aae1b860c5f58607716e1 (diff)
downloadpdf-as-3-78c6b0e57cd3bda51254384a98006ebc6983d52e.tar.gz
pdf-as-3-78c6b0e57cd3bda51254384a98006ebc6983d52e.tar.bz2
pdf-as-3-78c6b0e57cd3bda51254384a98006ebc6983d52e.zip
Corrected an error that happened because of code changing when testing. The attribute "error_within_iframe" is again set to yes, if mobile or online CCS are choosen.
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@851 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'pdf-as-web')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java
index 5e6ee03..dcc0bb2 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java
@@ -459,6 +459,7 @@ public class SignServlet extends HttpServlet
}
if (localFound) {
+
session.setAttribute(SignServlet.ERROR_WITHIN_IFRAME, "no");
pdfaEnabled = "on".equalsIgnoreCase((String)session.getAttribute(SUBMITFORM_PDFA_KEY));
sig_type = (String)session.getAttribute(SUBMITFORM_SIGNATURE_TYPE_KEY);
@@ -482,7 +483,7 @@ public class SignServlet extends HttpServlet
{
FileItem item = (FileItem) it.next();
log.debug("item = " + item.getFieldName()); //$NON-NLS-1$
-
+
if (log.isDebugEnabled())
{
if (item.isFormField())
@@ -505,7 +506,7 @@ public class SignServlet extends HttpServlet
continue;
}
- if ((item.getFieldName().equals(FormFields.FIELD_CONNECTOR_SMARTCARD)) || (item.getFieldName().equals(FormFields.FIELD_CONNECTOR_MOBILE))) {
+ if ((item.getFieldName().equals(FormFields.FIELD_CONNECTOR_SMARTCARD)) || (item.getFieldName().equals(FormFields.FIELD_CONNECTOR_MOBILE)) || (item.getFieldName().equals(FormFields.FIELD_CONNECTOR_LOCALBKU))) {
if (item.getFieldName().equals(FormFields.FIELD_CONNECTOR_SMARTCARD)) {
session.setAttribute(SUBMITFORM_SIGNATURE_DEVICE_KEY, "moc");
sig_app = "moc";
@@ -514,6 +515,10 @@ public class SignServlet extends HttpServlet
session.setAttribute(SUBMITFORM_SIGNATURE_DEVICE_KEY, "mobile");
sig_app = "mobile";
}
+ if (item.getFieldName().equals(FormFields.FIELD_CONNECTOR_LOCALBKU)) {
+ session.setAttribute(SUBMITFORM_SIGNATURE_DEVICE_KEY, "bku");
+ sig_app = "bku";
+ }
continue;
}
@@ -664,9 +669,9 @@ public class SignServlet extends HttpServlet
throw new PDFDocumentException(201, "Unable to create PDF document.", e);
}
- }
+ //}
// byte[] pdf = file_upload_fi.get();
- //}
+ }
}