diff options
author | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2021-06-25 13:10:41 +0200 |
---|---|---|
committer | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2021-06-28 14:22:51 +0200 |
commit | 759f2277f9b6cf339d8fcc5631ea547855ab9e56 (patch) | |
tree | f88357ef218dd1b0037909b61d76c350730c1f69 /pdf-as-web/src/main/webapp | |
parent | 897664089ed6b3082d3dcca946533c83268a79bb (diff) | |
download | pdf-as-4-759f2277f9b6cf339d8fcc5631ea547855ab9e56.tar.gz pdf-as-4-759f2277f9b6cf339d8fcc5631ea547855ab9e56.tar.bz2 pdf-as-4-759f2277f9b6cf339d8fcc5631ea547855ab9e56.zip |
seems to work on most systems ..
Diffstat (limited to 'pdf-as-web/src/main/webapp')
-rw-r--r-- | pdf-as-web/src/main/webapp/WEB-INF/web.xml | 17 | ||||
-rw-r--r-- | pdf-as-web/src/main/webapp/index.jsp | 11 |
2 files changed, 23 insertions, 5 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 a52d1361..bbf608b0 100644 --- a/pdf-as-web/src/main/webapp/index.jsp +++ b/pdf-as-web/src/main/webapp/index.jsp @@ -2,17 +2,20 @@ <%@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="✓" /> <input type="hidden" name="source" id="source" value="internal" /> <input type="file" name="pdf-file" id="pdf-file" accept="application/pdf"> <% if (request.getAttribute("FILEERR") != null) { %> - <p>Bitte die zu signierende PDF Datei angeben.</p> + <p>Bitte die zu signierende PDF Datei angeben. öäüÖÄÜ</p> <% } %> |