From 4ac58df2e45cf2640bcd7b34823522a3300e86c9 Mon Sep 17 00:00:00 2001 From: Christian Maierhofer Date: Tue, 25 Feb 2014 09:38:04 +0100 Subject: changed parameter sig_type and pdfFile --- .../main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java | 2 +- .../src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java | 2 +- .../src/main/java/at/gv/egiz/pdfas/web/servlets/VerifyServlet.java | 2 +- pdf-as-web/src/main/webapp/index.jsp | 2 +- pdf-as-web/src/main/webapp/verifystart.jsp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'pdf-as-web') diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java index 532bfadb..c4acf5a8 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java @@ -36,7 +36,7 @@ public class PdfAsParameterExtractor { public static final String PARAM_LOCALE = "locale"; public static final String PARAM_NUM_BYTES = "num-bytes"; public static final String PARAM_PDF_URL = "pdf-url"; - public static final String PARAM_SIG_TYPE = "sig_type"; + public static final String PARAM_SIG_TYPE = "sig-type"; public static final String PARAM_SIG_POS_P = "sig-pos-p"; public static final String PARAM_SIG_POS_Y = "sig-pos-y"; public static final String PARAM_SIG_POS_X = "sig-pos-x"; diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java index 8b36f3a5..bc485131 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java @@ -56,7 +56,7 @@ public class ExternSignServlet extends HttpServlet { public static final String PDF_AS_WEB_CONF = "pdf-as-web.conf"; - private static final String UPLOAD_PDF_DATA = "pdfFile"; + private static final String UPLOAD_PDF_DATA = "pdf-file"; private static final String UPLOAD_DIRECTORY = "upload"; private static final int THRESHOLD_SIZE = 1024 * 1024 * 3; // 3MB private static final int MAX_FILE_SIZE = 1024 * 1024 * 40; // 40MB diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/VerifyServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/VerifyServlet.java index 1f84e151..342e95de 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/VerifyServlet.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/VerifyServlet.java @@ -61,7 +61,7 @@ public class VerifyServlet extends HttpServlet { private static final Logger logger = LoggerFactory .getLogger(ExternSignServlet.class); - private static final String UPLOAD_PDF_DATA = "pdfFile"; + private static final String UPLOAD_PDF_DATA = "pdf-file"; private static final String UPLOAD_DIRECTORY = "upload"; private static final int THRESHOLD_SIZE = 1024 * 1024 * 3; // 3MB private static final int MAX_FILE_SIZE = 1024 * 1024 * 40; // 40MB diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp index 6383f8a3..eba5db46 100644 --- a/pdf-as-web/src/main/webapp/index.jsp +++ b/pdf-as-web/src/main/webapp/index.jsp @@ -7,7 +7,7 @@
+ type="file" name="pdf-file" id="pdf-file" accept="application/pdf"> <% if (request.getAttribute("FILEERR") != null) { %> diff --git a/pdf-as-web/src/main/webapp/verifystart.jsp b/pdf-as-web/src/main/webapp/verifystart.jsp index cf8187bf..8a5af476 100644 --- a/pdf-as-web/src/main/webapp/verifystart.jsp +++ b/pdf-as-web/src/main/webapp/verifystart.jsp @@ -5,7 +5,7 @@

Verify PDF-Dokument

- +
-- cgit v1.2.3