diff options
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); |