aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src/main/webapp')
-rw-r--r--pdf-as-web/src/main/webapp/WEB-INF/web.xml17
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp15
2 files changed, 28 insertions, 4 deletions
diff --git a/pdf-as-web/src/main/webapp/WEB-INF/web.xml b/pdf-as-web/src/main/webapp/WEB-INF/web.xml
index 9b69c983..7920ad91 100644
--- a/pdf-as-web/src/main/webapp/WEB-INF/web.xml
+++ b/pdf-as-web/src/main/webapp/WEB-INF/web.xml
@@ -31,7 +31,22 @@
<param-value>*</param-value>
</init-param>
</filter>
-
+ <!-- A filter that sets character encoding that is used to decode -->
+ <!-- parameters in a POST request -->
+ <filter>
+ <filter-name>setCharacterEncodingFilter</filter-name>
+ <filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
+ <init-param>
+ <param-name>encoding</param-name>
+ <param-value>UTF-8</param-value>
+ </init-param>
+ </filter>
+
+ <!-- The mapping for the Set Character Encoding Filter -->
+ <filter-mapping>
+ <filter-name>setCharacterEncodingFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
<!-- filter-mapping>
<filter-name>sitemesh</filter-name>
diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp
index c07b2cc0..9007d62a 100644
--- a/pdf-as-web/src/main/webapp/index.jsp
+++ b/pdf-as-web/src/main/webapp/index.jsp
@@ -2,11 +2,14 @@
<%@page import="at.gv.egiz.pdfas.web.helper.PdfAsHelper"%>
<html>
<head>
-<title>PDF-Signatur</title>
+ <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+ <title>PDF-Signatur</title>
</head>
<body>
- <form action="Sign" method="POST"
- enctype="multipart/form-data">
+
+<form action="Sign" method="POST" enctype="multipart/form-data" >
+
+ <input name="utf8" type="hidden" value="&#x2713;" />
<input type="hidden" name="source" id="source" value="internal" />
<input type="file" name="pdf-file" id="pdf-file" accept="application/pdf">
<%
@@ -24,6 +27,12 @@
<img src="assets/img/localBKU.png" /> <button type="submit"
value="bku" name="connector" id="bku">Lokale BKU
</button>
+<!--
+ <label for="ab">SBP keyA</label>
+ <input type="text" id="ab" name="sbp:keyA">
+ <label for="abc">SBP keyB</label>
+ <input type="text" id="abc" name="sbp:keyB">
+ -->
<%
}
%>