aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main
diff options
context:
space:
mode:
authorChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2014-02-25 09:38:04 +0100
committerChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2014-02-25 09:48:43 +0100
commit4ac58df2e45cf2640bcd7b34823522a3300e86c9 (patch)
treea0ca1c1bdc3c8fa67b2062e50ede70d063829c9a /pdf-as-web/src/main
parentc683ceb96e7c3e1d8fea6ebc90d61e0fb41fe9a4 (diff)
downloadpdf-as-4-4ac58df2e45cf2640bcd7b34823522a3300e86c9.tar.gz
pdf-as-4-4ac58df2e45cf2640bcd7b34823522a3300e86c9.tar.bz2
pdf-as-4-4ac58df2e45cf2640bcd7b34823522a3300e86c9.zip
changed parameter sig_type and pdfFile
Diffstat (limited to 'pdf-as-web/src/main')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java2
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java2
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/VerifyServlet.java2
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp2
-rw-r--r--pdf-as-web/src/main/webapp/verifystart.jsp2
5 files changed, 5 insertions, 5 deletions
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 @@
<form role="form" action="Sign" method="POST"
enctype="multipart/form-data">
<input type="hidden" name="source" id="source" value="internal" /> <input
- type="file" name="pdfFile" id="pdfFile" accept="application/pdf">
+ 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 @@
<h1>Verify PDF-Dokument</h1>
<form action="Sign" method="POST" enctype="multipart/form-data">
- <input type="file" name="pdffile" />
+ <input type="file" name="pdf-file" />
<input type="submit" value="Verfiy">
</form>