diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-08-14 15:59:34 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-08-14 15:59:34 +0200 |
commit | ada6471f114c3e39f9b41294fb3b94c76b16bf59 (patch) | |
tree | 1d6a39842fbd9bed82bcae778dd4e75403b2123d /simpleSigning/src/main/java/at | |
parent | 34bda0835fa7ea1da4f200a757cdb7338566e777 (diff) | |
download | einfach-signieren-ada6471f114c3e39f9b41294fb3b94c76b16bf59.tar.gz einfach-signieren-ada6471f114c3e39f9b41294fb3b94c76b16bf59.tar.bz2 einfach-signieren-ada6471f114c3e39f9b41294fb3b94c76b16bf59.zip |
More changes
Diffstat (limited to 'simpleSigning/src/main/java/at')
-rw-r--r-- | simpleSigning/src/main/java/at/gv/egiz/simpleSigning/StartSignature.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/simpleSigning/src/main/java/at/gv/egiz/simpleSigning/StartSignature.java b/simpleSigning/src/main/java/at/gv/egiz/simpleSigning/StartSignature.java index b153c30..e88e85a 100644 --- a/simpleSigning/src/main/java/at/gv/egiz/simpleSigning/StartSignature.java +++ b/simpleSigning/src/main/java/at/gv/egiz/simpleSigning/StartSignature.java @@ -222,6 +222,14 @@ public class StartSignature extends HttpServlet { bkusel = FileUtils.readFileToString(FileUtils .toFile(PDFASJsServlet.class .getResource("/html/submit"))); + + if (SessionHelper.getType(req) != null && + SessionHelper.getType(req).equals(Type.PDF)) { + bkusel = bkusel.replace("##REPLACE##NAME##", "Dokument signieren"); + } else { + bkusel = bkusel.replace("##REPLACE##NAME##", "Text signieren"); + } + } form = form.replace("##REPLACE##BKUSEL##", bkusel); |