From 29ad090c29567ff1a4d3a2ec9b8ad0b5d80ee24d Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 6 Dec 2010 16:34:52 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@671 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- pdf-as-web/src/main/webapp/META-INF/context.xml | 9 + pdf-as-web/src/main/webapp/WEB-INF/decorators.xml | 16 ++ pdf-as-web/src/main/webapp/WEB-INF/sitemesh.xml | 30 +++ pdf-as-web/src/main/webapp/WEB-INF/web.xml | 191 +++++++++++++ .../bku-erkennung/bku-erkennung/bku-erkennung.html | 47 ++++ .../bku-erkennung/bku-erkennung_empty.html | 11 + .../bku-erkennung/bku-erkennung_helper.html | 17 ++ .../webapp/bku-erkennung/bku-erkennung_iframe.html | 57 ++++ .../main/webapp/bku-erkennung/css/pngbehavior.htc | 86 ++++++ .../src/main/webapp/bku-erkennung/img/blank.gif | Bin 0 -> 49 bytes .../src/main/webapp/bku-erkennung/img/siga1.gif | Bin 0 -> 694 bytes .../src/main/webapp/bku-erkennung/img/siga1.png | Bin 0 -> 1666 bytes .../main/webapp/bku-erkennung/img/siga1_active.png | Bin 0 -> 1826 bytes .../main/webapp/bku-erkennung/img/siga1_small.gif | Bin 0 -> 1401 bytes .../src/main/webapp/bku-erkennung/img/sighw.gif | Bin 0 -> 1336 bytes .../main/webapp/bku-erkennung/img/sighw_active.png | Bin 0 -> 1932 bytes .../main/webapp/bku-erkennung/img/sighw_green.gif | Bin 0 -> 2755 bytes .../main/webapp/bku-erkennung/img/sighw_green.png | Bin 0 -> 5444 bytes .../webapp/bku-erkennung/img/sighw_green_bold.png | Bin 0 -> 5546 bytes .../bku-erkennung/img/sighw_green_original.gif | Bin 0 -> 2825 bytes .../main/webapp/bku-erkennung/img/sighw_red.gif | Bin 0 -> 2970 bytes .../main/webapp/bku-erkennung/img/sighw_red.png | Bin 0 -> 5709 bytes .../bku-erkennung/img/sighw_red_original.gif | Bin 0 -> 3032 bytes .../main/webapp/bku-erkennung/img/sighw_yellow.gif | Bin 0 -> 2860 bytes .../main/webapp/bku-erkennung/img/sighw_yellow.png | Bin 0 -> 5664 bytes .../bku-erkennung/img/sighw_yellow_original.gif | Bin 0 -> 2911 bytes .../src/main/webapp/bku-erkennung/index.html | 14 + .../main/webapp/css/pdfas-standalone-styles.css | 11 + pdf-as-web/src/main/webapp/css/pdfas-styles.css | 131 +++++++++ .../src/main/webapp/images/button-search.jpg | Bin 0 -> 778 bytes pdf-as-web/src/main/webapp/images/chiperling.jpg | Bin 0 -> 22511 bytes pdf-as-web/src/main/webapp/images/menu-divider.jpg | Bin 0 -> 485 bytes .../main/webapp/images/signatur-logo_de-100.png | Bin 0 -> 7852 bytes .../src/main/webapp/images/signatur-logo_de.png | Bin 0 -> 62345 bytes .../main/webapp/images/signatur-logo_en-100.png | Bin 0 -> 10037 bytes .../src/main/webapp/images/signatur-logo_en.png | Bin 0 -> 60055 bytes pdf-as-web/src/main/webapp/jsp/SIGNATURBLOCK.jsp | 103 +++++++ pdf-as-web/src/main/webapp/jsp/dataok.jsp | 25 ++ pdf-as-web/src/main/webapp/jsp/download.jsp | 44 +++ pdf-as-web/src/main/webapp/jsp/error.jsp | 109 ++++++++ pdf-as-web/src/main/webapp/jsp/error_verify.jsp | 51 ++++ pdf-as-web/src/main/webapp/jsp/language.jsp | 9 + .../src/main/webapp/jsp/null_request_page.jsp | 108 ++++++++ pdf-as-web/src/main/webapp/jsp/please_wait.jsp | 16 ++ .../src/main/webapp/jsp/redirect_to_parent.jsp | 33 +++ pdf-as-web/src/main/webapp/jsp/results.jsp | 84 ++++++ pdf-as-web/src/main/webapp/jsp/signpreview.jsp | 84 ++++++ pdf-as-web/src/main/webapp/jsp/signupload.jsp | 296 +++++++++++++++++++++ pdf-as-web/src/main/webapp/jsp/verifylist.jsp | 73 +++++ pdf-as-web/src/main/webapp/jsp/verifypreview.jsp | 60 +++++ pdf-as-web/src/main/webapp/jsp/verifyupload.jsp | 41 +++ pdf-as-web/src/main/webapp/sitemesh/standalone.jsp | 37 +++ 52 files changed, 1793 insertions(+) create mode 100644 pdf-as-web/src/main/webapp/META-INF/context.xml create mode 100644 pdf-as-web/src/main/webapp/WEB-INF/decorators.xml create mode 100644 pdf-as-web/src/main/webapp/WEB-INF/sitemesh.xml create mode 100644 pdf-as-web/src/main/webapp/WEB-INF/web.xml create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung.html create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung_empty.html create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung_helper.html create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung_iframe.html create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/css/pngbehavior.htc create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/blank.gif create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/siga1.gif create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/siga1.png create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/siga1_active.png create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/siga1_small.gif create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw.gif create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_active.png create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green.gif create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green.png create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green_bold.png create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green_original.gif create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red.gif create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red.png create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red_original.gif create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow.gif create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow.png create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow_original.gif create mode 100644 pdf-as-web/src/main/webapp/bku-erkennung/index.html create mode 100644 pdf-as-web/src/main/webapp/css/pdfas-standalone-styles.css create mode 100644 pdf-as-web/src/main/webapp/css/pdfas-styles.css create mode 100644 pdf-as-web/src/main/webapp/images/button-search.jpg create mode 100644 pdf-as-web/src/main/webapp/images/chiperling.jpg create mode 100644 pdf-as-web/src/main/webapp/images/menu-divider.jpg create mode 100644 pdf-as-web/src/main/webapp/images/signatur-logo_de-100.png create mode 100644 pdf-as-web/src/main/webapp/images/signatur-logo_de.png create mode 100644 pdf-as-web/src/main/webapp/images/signatur-logo_en-100.png create mode 100644 pdf-as-web/src/main/webapp/images/signatur-logo_en.png create mode 100644 pdf-as-web/src/main/webapp/jsp/SIGNATURBLOCK.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/dataok.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/download.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/error.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/error_verify.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/language.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/null_request_page.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/please_wait.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/redirect_to_parent.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/results.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/signpreview.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/signupload.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/verifylist.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/verifypreview.jsp create mode 100644 pdf-as-web/src/main/webapp/jsp/verifyupload.jsp create mode 100644 pdf-as-web/src/main/webapp/sitemesh/standalone.jsp (limited to 'pdf-as-web/src/main/webapp') diff --git a/pdf-as-web/src/main/webapp/META-INF/context.xml b/pdf-as-web/src/main/webapp/META-INF/context.xml new file mode 100644 index 0000000..a0de89e --- /dev/null +++ b/pdf-as-web/src/main/webapp/META-INF/context.xml @@ -0,0 +1,9 @@ + + + + + + + diff --git a/pdf-as-web/src/main/webapp/WEB-INF/decorators.xml b/pdf-as-web/src/main/webapp/WEB-INF/decorators.xml new file mode 100644 index 0000000..a88892d --- /dev/null +++ b/pdf-as-web/src/main/webapp/WEB-INF/decorators.xml @@ -0,0 +1,16 @@ + + + + /bku-erkennung/* + /jsp/please_wait.jsp + /css/* + /img/* + *.pdf + /*.pdf + + + + /* + + + diff --git a/pdf-as-web/src/main/webapp/WEB-INF/sitemesh.xml b/pdf-as-web/src/main/webapp/WEB-INF/sitemesh.xml new file mode 100644 index 0000000..c6653cc --- /dev/null +++ b/pdf-as-web/src/main/webapp/WEB-INF/sitemesh.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pdf-as-web/src/main/webapp/WEB-INF/web.xml b/pdf-as-web/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..e69614b --- /dev/null +++ b/pdf-as-web/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,191 @@ + + + + EGIZ PDF-AS + PDF-AS + + + + + javax.servlet.jsp.jstl.fmt.localizationContext + at.gv.egiz.pdfas.web.i18n.language + + + + encodingFilter + at.gv.egiz.pdfas.web.filter.EncodingFilter + + encoding + UTF-8 + + + setRequestEncoding + true + + + forceRequestEncoding + true + + + setResponseEncoding + true + + + forceResponseEncoding + true + + + + + localeparam + at.gv.egiz.pdfas.web.i18n.LocaleParamFilter + + + + sitemesh + com.opensymphony.module.sitemesh.filter.PageFilter + + + + encodingFilter + /* + + + + localeparam + /* + + + + sitemesh + /* + + + + at.gv.egiz.pdfas.web.PdfASServletContextListener + + + + Sign + at.gv.egiz.pdfas.web.servlets.SignServlet + + + + ProvidePDF + at.gv.egiz.pdfas.web.servlets.ProvidePDFServlet + + + + SignPreview + at.gv.egiz.pdfas.web.servlets.SignPreviewServlet + + + + RetrieveSignatureData + at.gv.egiz.pdfas.web.servlets.RetrieveSignatureDataServlet + + + + DataURL + at.gv.egiz.pdfas.web.servlets.DataURLServlet + + + + Verify + at.gv.egiz.pdfas.web.servlets.VerifyServlet + + + + VerifyPreview + at.gv.egiz.pdfas.web.servlets.VerifyPreviewServlet + + + + AsynchronousDataResponder + at.gv.egiz.pdfas.web.servlets.AsynchronousDataResponder + + + + AsynchronousRedirectResponder + at.gv.egiz.pdfas.web.servlets.AsynchronousRedirectResponder + + + + UpdateForm + at.gv.egiz.pdfas.web.servlets.UpdateFormServlet + + + + Sign + /Sign + + + + ProvidePDF + /ProvidePDF + + + + SignPreview + /SignPreview + + + + RetrieveSignatureData + /RetrieveSignatureData + + + + DataURL + /DataURL + + + + Verify + /Verify + + + + VerifyPreview + /VerifyPreview + + + + AsynchronousDataResponder + /AsynchronousDataResponder + + + + AsynchronousRedirectResponder + /AsynchronousRedirectResponder + + + + UpdateForm + /UpdateForm + + + + 10 + + + + jsp/signupload.jsp + + + \ No newline at end of file diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung.html b/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung.html new file mode 100644 index 0000000..d3bb009 --- /dev/null +++ b/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung.html @@ -0,0 +1,47 @@ + + + + + BKU Test + + + + + + + + + diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung_empty.html b/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung_empty.html new file mode 100644 index 0000000..d6d1a1a --- /dev/null +++ b/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung_empty.html @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung_helper.html b/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung_helper.html new file mode 100644 index 0000000..7d6aba9 --- /dev/null +++ b/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung/bku-erkennung_helper.html @@ -0,0 +1,17 @@ + + + + + BKU Test Helper + + + + + + + + diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung_iframe.html b/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung_iframe.html new file mode 100644 index 0000000..94bcdc7 --- /dev/null +++ b/pdf-as-web/src/main/webapp/bku-erkennung/bku-erkennung_iframe.html @@ -0,0 +1,57 @@ + + + + + BKU Test + + + + + + status + + + + + + + diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/css/pngbehavior.htc b/pdf-as-web/src/main/webapp/bku-erkennung/css/pngbehavior.htc new file mode 100644 index 0000000..ba171c6 --- /dev/null +++ b/pdf-as-web/src/main/webapp/bku-erkennung/css/pngbehavior.htc @@ -0,0 +1,86 @@ + + + + + + diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/blank.gif b/pdf-as-web/src/main/webapp/bku-erkennung/img/blank.gif new file mode 100644 index 0000000..75b945d Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/blank.gif differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1.gif b/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1.gif new file mode 100644 index 0000000..8ff0c6b Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1.gif differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1.png b/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1.png new file mode 100644 index 0000000..4cd7c4e Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1.png differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1_active.png b/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1_active.png new file mode 100644 index 0000000..97a821d Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1_active.png differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1_small.gif b/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1_small.gif new file mode 100644 index 0000000..04804ea Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/siga1_small.gif differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw.gif b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw.gif new file mode 100644 index 0000000..d397253 Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw.gif differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_active.png b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_active.png new file mode 100644 index 0000000..62a669b Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_active.png differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green.gif b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green.gif new file mode 100644 index 0000000..cbef10f Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green.gif differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green.png b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green.png new file mode 100644 index 0000000..9d4349e Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green.png differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green_bold.png b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green_bold.png new file mode 100644 index 0000000..62422ed Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green_bold.png differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green_original.gif b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green_original.gif new file mode 100644 index 0000000..0f967c1 Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_green_original.gif differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red.gif b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red.gif new file mode 100644 index 0000000..9eba9e2 Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red.gif differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red.png b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red.png new file mode 100644 index 0000000..7ffd0b6 Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red.png differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red_original.gif b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red_original.gif new file mode 100644 index 0000000..8079312 Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_red_original.gif differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow.gif b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow.gif new file mode 100644 index 0000000..9a95fad Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow.gif differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow.png b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow.png new file mode 100644 index 0000000..d27acbf Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow.png differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow_original.gif b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow_original.gif new file mode 100644 index 0000000..5f0aad2 Binary files /dev/null and b/pdf-as-web/src/main/webapp/bku-erkennung/img/sighw_yellow_original.gif differ diff --git a/pdf-as-web/src/main/webapp/bku-erkennung/index.html b/pdf-as-web/src/main/webapp/bku-erkennung/index.html new file mode 100644 index 0000000..436061b --- /dev/null +++ b/pdf-as-web/src/main/webapp/bku-erkennung/index.html @@ -0,0 +1,14 @@ + + + + + BKU-Erkennung + + + +

Erkennung laufender BKU-Software

+ + + + + diff --git a/pdf-as-web/src/main/webapp/css/pdfas-standalone-styles.css b/pdf-as-web/src/main/webapp/css/pdfas-standalone-styles.css new file mode 100644 index 0000000..aa9459c --- /dev/null +++ b/pdf-as-web/src/main/webapp/css/pdfas-standalone-styles.css @@ -0,0 +1,11 @@ +table.pdfassignature td.pdfaslabel { + font-size: 0.9em; +} + +table.pdfassignature td.pdfasvalue { + font-size: 0.9em; +} + +pre.pdfasnt { + font-size: 0.8em; +} diff --git a/pdf-as-web/src/main/webapp/css/pdfas-styles.css b/pdf-as-web/src/main/webapp/css/pdfas-styles.css new file mode 100644 index 0000000..b556ffc --- /dev/null +++ b/pdf-as-web/src/main/webapp/css/pdfas-styles.css @@ -0,0 +1,131 @@ +div#pdfas-container td { + border: none; +} + +table.pdfassignature { + background-color: #F5F5F0; + font-size: 1em; + border: 1px solid red; + border-collapse: collapse; + table-layout: auto; + width: 650px; +} + +table.pdfassignature td.pdfaslabel { + font-family: Helvetica, Times; + text-align: center; + min-width: 100px; + /* word-spacing: nowrap; */ +} + +table.pdfassignature td { + border: 1px solid black !important; +} + +textarea.freetext { + width: 450px; + height: 150px; + font: 1em 'Courier New', courier, monospace; + margin: 0px 0px 0px 0px; +} + +table#pdfasupperformtable { + margin-top: 10px; +} + +table.pdfassignature td.pdfasvalue { + font-family: monospace; + border: 1px solid black; + border-collapse: collapse; + text-align: left; + font-size: 1.2em; +} + +div.pdfasnobreak { + float: left; + white-space: nowrap; +} + +table.pdfassignature td.pdfasvalue input { + font-family: monospace; +} + +div.pdfasverticalspace { + padding: 20px 0px 0px 0px; +} + +div.pdfassmallverticalspace { + padding: 10px 0px 0px 0px; +} + +div.pdfasnote { + padding: 10px 0px 0px 0px; + margin: 0px 0px 0px 0px; + max-width: 700px; + text-align: left; +} + +.pdfasemphasis { + color: #2c5486; + font-weight: bold; +} + +pre.pdfasnt { + font: 1em, courier new, courier, monospace; + border: 1px solid black; + text-align: left; + padding: 5px; + height: 40ex; + width: 640px; + overflow: auto; +} + +a.pdfasbacklink { + padding: 0px 0px 0px 0px; + margin: 20px 0px 10px 0px; +} + +.pdfaspreviewfield { + font: 1em, courier new, courier, monospace; + width: 94%; + margin: 0px 0px 0px 0px; +} + +table.pdfaslisttable { + border-style: none; + border-collapse: collapse; + text-align: left; + font-size: 1em; + width: 100%; +} + +.pdfaslisttablecontainer { + border: 1px solid black; + padding: 5px 5px 5px 5px; + margin: 0px 0px 15px 0px; + float: left; + width: 98%; +} + +table.pdfaslisttable td.pdfasvalue { + width: 90%; +} + +table.pdfaslisttable td.pdfascaption { + width: 10%; + vertical-align: top; + padding-right: 10px; + white-space: nowrap; +} + +.pdfasok { + background-color: #bdff7b; +} + +.pdfasnok { + background-color: #f66; +} + +fieldset.pdfasresultfieldset { + padding: 5px 5px 5px 5px; +} diff --git a/pdf-as-web/src/main/webapp/images/button-search.jpg b/pdf-as-web/src/main/webapp/images/button-search.jpg new file mode 100644 index 0000000..3a17347 Binary files /dev/null and b/pdf-as-web/src/main/webapp/images/button-search.jpg differ diff --git a/pdf-as-web/src/main/webapp/images/chiperling.jpg b/pdf-as-web/src/main/webapp/images/chiperling.jpg new file mode 100644 index 0000000..fcb633a Binary files /dev/null and b/pdf-as-web/src/main/webapp/images/chiperling.jpg differ diff --git a/pdf-as-web/src/main/webapp/images/menu-divider.jpg b/pdf-as-web/src/main/webapp/images/menu-divider.jpg new file mode 100644 index 0000000..53272d7 Binary files /dev/null and b/pdf-as-web/src/main/webapp/images/menu-divider.jpg differ diff --git a/pdf-as-web/src/main/webapp/images/signatur-logo_de-100.png b/pdf-as-web/src/main/webapp/images/signatur-logo_de-100.png new file mode 100644 index 0000000..d7ff84d Binary files /dev/null and b/pdf-as-web/src/main/webapp/images/signatur-logo_de-100.png differ diff --git a/pdf-as-web/src/main/webapp/images/signatur-logo_de.png b/pdf-as-web/src/main/webapp/images/signatur-logo_de.png new file mode 100644 index 0000000..4307f6a Binary files /dev/null and b/pdf-as-web/src/main/webapp/images/signatur-logo_de.png differ diff --git a/pdf-as-web/src/main/webapp/images/signatur-logo_en-100.png b/pdf-as-web/src/main/webapp/images/signatur-logo_en-100.png new file mode 100644 index 0000000..0d84ca7 Binary files /dev/null and b/pdf-as-web/src/main/webapp/images/signatur-logo_en-100.png differ diff --git a/pdf-as-web/src/main/webapp/images/signatur-logo_en.png b/pdf-as-web/src/main/webapp/images/signatur-logo_en.png new file mode 100644 index 0000000..505e6a5 Binary files /dev/null and b/pdf-as-web/src/main/webapp/images/signatur-logo_en.png differ diff --git a/pdf-as-web/src/main/webapp/jsp/SIGNATURBLOCK.jsp b/pdf-as-web/src/main/webapp/jsp/SIGNATURBLOCK.jsp new file mode 100644 index 0000000..6a1ce81 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/SIGNATURBLOCK.jsp @@ -0,0 +1,103 @@ +<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage=""%> + +<%@ page import="org.apache.commons.lang.time.DateFormatUtils" %> +<%@ page import="java.util.Date" %> +<%@ page import="at.gv.egiz.pdfas.api.commons.Constants" %> +<%@ page import="at.gv.egiz.pdfas.web.servlets.UpdateFormServlet"%> +<%@ page import="at.gv.egiz.pdfas.web.FormFields" %> + +<%@ include file="language.jsp" %> + + <% + String mode = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY); + String device = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_DEVICE_KEY); + String type = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_TYPE_KEY); + + String sbValue; + String sbLabel; + String sbMeta; + String sbName; + String sbDate; + String sbIssuer; + String sbNumber; + String sbKZ; + String sbID; + String sbMetaValue; + if ("SIGNATURBLOCK_DE".equals(type)) { + sbValue = "Signaturwert"; + sbLabel = "signatur-logo_de-100.png"; + sbMetaValue = "Informationen zur Prüfung der elektronischen Signatur und des Ausdrucks finden Sie unter: "; + sbName = "Unterzeichner"; + sbDate = "Datum/Zeit-UTC"; + sbIssuer = "Aussteller-Zertifikat"; + sbNumber = "Serien-Nr."; + sbKZ = "Methode"; + sbID = "Parameter"; + sbMeta = "Prüfinformation"; + } else { + sbValue = "Signature Value"; + sbLabel = "signatur-logo_en-100.png"; + sbMetaValue = "Information about the verification of the electronic signature and of the printout can be found at: "; + sbName = "Signatory"; + sbDate = "Date/Time-UTC"; + sbIssuer = "Issuer-Certificate"; + sbNumber = "Serial-No."; + sbKZ = "Method"; + sbID = "Parameter"; + sbMeta = "Verification"; + } + + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<%= sbValue %> +
Aqs3vMeF81wm/UJjIcLOzUs9
+
dxTBzhi2RC8avQyMAmc3v
+
WEj9HT1DI3iish4smRr
+
Signatur-Logo<%= sbName %>" readonly="readonly" disabled="disabled" size="40" maxlength="255"/>
<%= sbDate %><%= DateFormatUtils.formatUTC(new Date(), "yyyy-MM-dd'T'HH:mm:ss'Z'", request.getLocale()) %>
<%= sbIssuer %> +
CN=,
+
O=,
+
C=AT
+
<%= sbNumber %>123456
<%= sbKZ %> +
urn:pdfsigfilter:
+
bka.gv.at:
+
<%= FormFields.VALUE_MODE_TEXTUAL.equals(mode) ? "text:v1.2.0" : "binaer:v1.1.0" %>
+
<%= sbID %> +
etsi-moc-1.1@dbc17c36
+
<%= sbMeta %><%= sbMetaValue %>
+ \ No newline at end of file diff --git a/pdf-as-web/src/main/webapp/jsp/dataok.jsp b/pdf-as-web/src/main/webapp/jsp/dataok.jsp new file mode 100644 index 0000000..ae209ab --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/dataok.jsp @@ -0,0 +1,25 @@ + + +<%@ include file="language.jsp" %> + + + +<fmt:message key="common.title"/> + + + +
+

+

+ +

+ +

+ +<% + String btlurl = (String)request.getAttribute("btlurl"); +%> + +
+ + \ No newline at end of file diff --git a/pdf-as-web/src/main/webapp/jsp/download.jsp b/pdf-as-web/src/main/webapp/jsp/download.jsp new file mode 100644 index 0000000..1b56f93 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/download.jsp @@ -0,0 +1,44 @@ +<%@ page contentType="text/html; charset=UTF-8"%> + +<%@ include file="language.jsp" %> + +<%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %> +<%@ page import="at.gv.egiz.pdfas.web.helper.LocalRequestHelper" %> + +<% + String downloadURL = (String) session.getAttribute(SessionAttributes.DOWNLOAD_URL_FOR_SIGNED_PDF_DOCUMENT); +%> + + + + <fmt:message key="download.title"/> + + + + + +

+

+
+
+
+ " onclick="return hitButton();"/> +
+
+ "> + + + diff --git a/pdf-as-web/src/main/webapp/jsp/error.jsp b/pdf-as-web/src/main/webapp/jsp/error.jsp new file mode 100644 index 0000000..fc7ff1b --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/error.jsp @@ -0,0 +1,109 @@ +<%@ page isErrorPage="true" %> +<%@ page import="at.gv.egiz.pdfas.web.helper.LocalRequestHelper" %> +<%@ page import="at.gv.egiz.pdfas.web.servlets.SignServlet" %> +<%@page import="at.gv.egiz.pdfas.api.exceptions.PdfAsException"%> +<%@ page import="at.gv.egiz.pdfas.web.session.SignSessionInformation" %> +<%@ page import="at.gv.egiz.pdfas.web.session.VerifySessionInformation" %> +<%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %> +<%@ page import="org.apache.commons.httpclient.util.EncodingUtil" %> +<%@ page import="org.apache.commons.httpclient.NameValuePair" %> +<%@ page import="at.gv.egiz.pdfas.web.helper.SignServletHelper" %> +<%@ page import="org.apache.commons.lang.StringEscapeUtils" %> +<%@ page import="java.io.*" %> + +<%@ include file="language.jsp" %> + + + + + + <fmt:message key="error.title"/> + + + + + + +<% + PdfAsException pe; + if (exception != null && exception instanceof PdfAsException) + { + pe = (PdfAsException)exception; + SignServlet.prepareDispatchToErrorPage(pe, request); + } else { + pe = (PdfAsException)request.getAttribute("PresentableException"); + } + + String error = request.getParameter("error"); + boolean paramInvok = false; + if (error == null) { + error = (request.getAttribute("error") == null ? "" : request.getAttribute("error").toString()); + } else { + paramInvok = true; + } + String cause = request.getParameter("cause"); + if (cause == null) { + cause = (request.getAttribute("cause") == null ? "" : request.getAttribute("cause").toString()); + } else { + paramInvok = true; + } + boolean rb = Boolean.TRUE.equals((Boolean) request.getAttribute("resourcebundle")); + Object sessionInfo = session.getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION); + + boolean isExternalInvocation = false; + if (sessionInfo != null) { + if (sessionInfo instanceof SignSessionInformation) { + SignSessionInformation si = (SignSessionInformation) sessionInfo; + isExternalInvocation = (si != null && si.exappinf != null); + if (isExternalInvocation) { + String urlParams = EncodingUtil.formUrlEncode(new NameValuePair[] { new NameValuePair("error", error), new NameValuePair("cause", cause) }, "ISO8859_1"); + if (si.exappinf.invoke_error_url == null) { + // prevent circular redirect + si.exappinf = null; + String redirectUrl = response.encodeRedirectURL(request.getContextPath() + "/jsp/error.jsp" + "?" + urlParams); + session.setAttribute(SessionAttributes.PARENT_WEBAPP_REDIRECT_URL, redirectUrl); + } else { + String errorUrl = si.exappinf.invoke_error_url + "?" + urlParams; + session.setAttribute(SessionAttributes.PARENT_WEBAPP_REDIRECT_URL, errorUrl); + } + String redirectHelper = response.encodeRedirectURL(request.getContextPath() + "/jsp/redirect_to_parent.jsp"); + SignServletHelper.disableBrowserCacheForResponse(response); + response.sendRedirect(redirectHelper); + } + } + } + +%> + + +

+

+
+ <% if (rb) { %> + + <% } else { out.write(StringEscapeUtils.escapeHtml(error)); } %> +
+
: + <% if (rb) { %> + + <% } else { out.write(StringEscapeUtils.escapeHtml(cause)); } %> +
+ <% if (!isExternalInvocation && !paramInvok) { %> +
+ + <% } // end if %> +
+		<%
+		  if (pe != null) {
+		    StringWriter sw = new StringWriter();
+		    PrintWriter pw = new PrintWriter(sw);
+		    pe.printStackTrace(pw);
+		    sw.close();
+		    pw.close();
+		    out.print(StringEscapeUtils.escapeHtml(sw.toString()));
+		  }
+		%>
+		
+ + + diff --git a/pdf-as-web/src/main/webapp/jsp/error_verify.jsp b/pdf-as-web/src/main/webapp/jsp/error_verify.jsp new file mode 100644 index 0000000..79c5bbd --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/error_verify.jsp @@ -0,0 +1,51 @@ +<%@ page isErrorPage="true" %> +<%@ page import="at.gv.egiz.pdfas.web.helper.LocalRequestHelper" %> +<%@ page import="at.gv.egiz.pdfas.web.servlets.SignServlet" %> +<%@ page import="at.knowcenter.wag.egov.egiz.exceptions.PresentableException" %> +<%@ page import="java.io.StringWriter" %> +<%@ page import="java.io.PrintWriter" %> + +<%@ include file="language.jsp" %> + + + + + + <fmt:message key="errorverify.title"/> + + + +<% + PresentableException pe = (PresentableException)request.getAttribute("PresentableException"); + if (exception != null && exception instanceof PresentableException) + { + pe = (PresentableException)exception; + SignServlet.prepareDispatchToErrorPage(pe, request); + } + + String error = (request.getAttribute("error") == null ? "" : request.getAttribute("error").toString()); + String cause = (request.getAttribute("cause") == null ? "" : request.getAttribute("cause").toString()); +%> + + +

+

+
<%= error %>
+
: <%= cause %>
+
+ +
+		<%
+		  if (pe != null) {
+		    StringWriter sw = new StringWriter();
+		    PrintWriter pw = new PrintWriter(sw);
+		    pe.printStackTrace(pw);
+		    sw.close();
+		    pw.close();
+		    out.print(sw);
+		  }
+		%>
+		
+ + + diff --git a/pdf-as-web/src/main/webapp/jsp/language.jsp b/pdf-as-web/src/main/webapp/jsp/language.jsp new file mode 100644 index 0000000..11aad84 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/language.jsp @@ -0,0 +1,9 @@ +<%@ page import="at.gv.egiz.pdfas.web.i18n.LocaleParamFilter" %> +<%@ page import="java.util.Locale" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> +<% + Locale currentLocale = (Locale) session.getAttribute(LocaleParamFilter.LOCALE_SESSION_KEY); + if (currentLocale != null) { +%> + +<% } // end if %> diff --git a/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp b/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp new file mode 100644 index 0000000..77699e3 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp @@ -0,0 +1,108 @@ +<%@ page contentType="text/html; charset=UTF-8"%> +<%@ page import="at.gv.egiz.pdfas.web.servlets.UpdateFormServlet"%> +<%@ page import="java.util.Locale" %> +<%@ page import="at.gv.egiz.pdfas.api.commons.Constants" %> +<%@ page import="at.gv.egiz.pdfas.web.session.VerifySessionInformation"%> +<%@ page import="at.gv.egiz.pdfas.web.session.SignSessionInformation" %> +<%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %> +<%@ include file="language.jsp" %> +<% + String local_request_url = (String)request.getAttribute("local_request_url"); + String data_url = (String) request.getAttribute("data_url"); + HttpSessionBindingListener si = (HttpSessionBindingListener) session.getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION); + Locale locale = (Locale) session.getAttribute(LocaleParamFilter.LOCALE_SESSION_KEY); + + boolean isExternalInvocation = false; + boolean isServerBKU = false; + if (si instanceof SignSessionInformation) { + SignSessionInformation ssi = (SignSessionInformation) si; + isExternalInvocation = ssi.exappinf != null; + isServerBKU = Constants.SIGNATURE_DEVICE_MOC.equals(ssi.connector); + } else { + VerifySessionInformation vsi = (VerifySessionInformation) si; + isExternalInvocation = vsi.exappinf != null; + isServerBKU = Constants.SIGNATURE_DEVICE_MOC.equals(vsi.connector); + } +%> + + + + + <fmt:message key="nullrequestpage.title"/> + + + + + <% if (!isExternalInvocation) { %> +

+

+ <% } // end if %> + + <% if (isServerBKU) { %> + <% if (!isExternalInvocation) { %> +
+ <% } // end if %> +
+ + + + + <% if (locale != null) { %> + + <% } // end if %> +
+ <% if (!isExternalInvocation) { %> +
+ + <% } else { // end if %> + + <% } // end if %> + + <% } else { %> + <% if (isExternalInvocation) { %> +
+ <% } else { %> +
+
+ <% } // end if %> +
+ + + <% if (locale != null) { %> + + <% } // end if %> + <% if (!isExternalInvocation) { %> + " /> + <% } // end if %> +
+ <% } // end if %> + + <% if (!isExternalInvocation) { %> +
+ + <% } // end if %> + + + + diff --git a/pdf-as-web/src/main/webapp/jsp/please_wait.jsp b/pdf-as-web/src/main/webapp/jsp/please_wait.jsp new file mode 100644 index 0000000..62c0d28 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/please_wait.jsp @@ -0,0 +1,16 @@ +<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage=""%> + +<%@ include file="language.jsp" %> + + + + <fmt:message key="pleasewait.title"/> + + + + + + + +
+ diff --git a/pdf-as-web/src/main/webapp/jsp/redirect_to_parent.jsp b/pdf-as-web/src/main/webapp/jsp/redirect_to_parent.jsp new file mode 100644 index 0000000..0930219 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/redirect_to_parent.jsp @@ -0,0 +1,33 @@ +<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage=""%> +<%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %> + + +<%@ include file="language.jsp" %> + + + + + + + <fmt:message key="pleasewait.title"/> + <% + String query = (String) session.getAttribute(SessionAttributes.PARENT_WEBAPP_REDIRECT_URL); + session.removeAttribute(SessionAttributes.PARENT_WEBAPP_REDIRECT_URL); + %> + + + +
+ +
+ + diff --git a/pdf-as-web/src/main/webapp/jsp/results.jsp b/pdf-as-web/src/main/webapp/jsp/results.jsp new file mode 100644 index 0000000..8301e43 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/results.jsp @@ -0,0 +1,84 @@ +<%@page import="at.gv.egiz.pdfas.api.verify.VerifyResult"%> +<%@page import="at.gv.egiz.pdfas.api.verify.VerifyResults"%> +<%@ page contentType="text/html; charset=UTF-8" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Iterator" %> + +<%@ include file="language.jsp" %> + +<% + VerifyResults results = (VerifyResults) request.getAttribute("results"); + Object bb = request.getAttribute("backbutton"); + String btlurl = (String)request.getAttribute("btlurl"); + boolean backbutton = true; + if (bb != null && bb.equals("false")) { + backbutton = false; + } +%> + + + + <fmt:message key="common.title"/> + + +

+

+ <% + Iterator resit = results.getResults().iterator(); + while (resit.hasNext()) { + VerifyResult result = (VerifyResult) resit.next(); + String subject = result.getSignerCertificate().getSubjectDN().getName(); + String issuer = result.getSignerCertificate().getIssuerDN().getName(); + String serial = result.getSignerCertificate().getSerialNumber().toString(); + %> + +
+
+ +
"><%= result.getValueCheckCode().getMessage() %>
+
+ +
+
+ + + + + + <% + List public_properties = result.getPublicProperties(); + Iterator propit = public_properties.iterator(); + while (propit.hasNext()) { + String public_property = (String) propit.next(); + %> + + <% + } + %> + +
:<%= subject %>
:<%= issuer %>
:<%= serial %>
:<%= public_property %>
:"><%= result.getCertificateCheck().getMessage() %>
+
+ +
+
+ +
"><%= result.getManifestCheckCode().getMessage() %>
+
+ + <% + if (resit.hasNext()) { + %> +
+ <% + } + } + %> +
+ <% if (backbutton) { %> + + <% } %> + <% if (btlurl != null) { %> + + <% } %> + + diff --git a/pdf-as-web/src/main/webapp/jsp/signpreview.jsp b/pdf-as-web/src/main/webapp/jsp/signpreview.jsp new file mode 100644 index 0000000..d21a967 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/signpreview.jsp @@ -0,0 +1,84 @@ +<%@ page import="at.gv.egiz.pdfas.web.FormFields" %> +<%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %> +<%@ page import="at.gv.egiz.pdfas.web.session.SignSessionInformation" %> +<%@ page import="at.gv.egiz.pdfas.web.io.TextDataSource"%> +<%@ page import="org.apache.commons.lang.StringEscapeUtils"%> +<%@ page import="at.gv.egiz.pdfas.api.commons.Constants" %> + +<%@ include file="language.jsp" %> + +<% + SignSessionInformation si = (SignSessionInformation) session.getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION); + + String submit_url = (String)request.getAttribute("submit_url"); + + String signature_data_url = (String)request.getAttribute("signature_data_url"); + + String document_text = null; + if (si.mode.equals(FormFields.VALUE_MODE_TEXTUAL)) { +// SignatureData data = si.si.getSignatureData(); +// TextDataSourceImpl tds = (TextDataSourceImpl)data.getDataSource(); +// document_text = StringEscapeUtils.escapeHtml(tds.getText()); + document_text = StringEscapeUtils.escapeHtml( + (String)request.getAttribute("document_text")); + } +%> + + + + + + <fmt:message key="signpreview.title"/> + + + +

+

+ <% + if (si.mode.equals(FormFields.VALUE_MODE_TEXTUAL)) { + %> +
+
<%= document_text != null ? document_text : "" %>
+ <% if (Constants.SIGNATURE_DEVICE_BKU.equals(si.connector)) { %> +
+ + + +
+ <% } else if (Constants.SIGNATURE_DEVICE_MOC.equals(si.connector)) { %> +
+ <fmt:message key="/> +
+ <% } // end if %> + " /> +
+ <% + } else { + %> +
+
+ " /> +
+
+ <% if (Constants.SIGNATURE_DEVICE_BKU.equals(si.connector)) { %> +
+ + + +
+ <% } else if (Constants.SIGNATURE_DEVICE_MOC.equals(si.connector)) { %> +
+ <fmt:message key="/> +
+ <% } // end if %> +
+ " /> +
+ <% + } + %> +
+ + + + diff --git a/pdf-as-web/src/main/webapp/jsp/signupload.jsp b/pdf-as-web/src/main/webapp/jsp/signupload.jsp new file mode 100644 index 0000000..9bc675f --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/signupload.jsp @@ -0,0 +1,296 @@ +<%@page import="at.gv.egiz.pdfas.web.servlets.UpdateFormServlet"%> +<%@page import="at.gv.egiz.pdfas.web.FormFields"%> +<%@page import="at.gv.egiz.pdfas.web.session.SessionAttributes"%> +<%@ page import="org.apache.commons.lang.StringEscapeUtils" %> +<%@ page import="at.gv.egiz.pdfas.api.commons.Constants" %> +<%@ page import="at.gv.egiz.pdfas.web.i18n.LanguageDecoratorMapper"%> +<%@ page import="org.apache.commons.lang.BooleanUtils"%> + + + +<%@ include file="language.jsp" %> + + + + <% + boolean testMode = request.getContextPath().startsWith("/test-"); + boolean forceTextualForMocca = false; + + final String SIGNATUREPROFILE_DE_nonPDFa = "SIGNATURBLOCK_DE"; + final String SIGNATUREPROFILE_EN_nonPDFa = "SIGNATURBLOCK_EN"; + final String SIGNATUREPROFILE_DE_PDFa = "SIGNATURBLOCK_DE_PDFA"; + final String SIGNATUREPROFILE_EN_PDFa = "SIGNATURBLOCK_EN_PDFA"; + + %> + + <% + if (testMode) { + %> + <fmt:message key="test.common.title"/> + <% } else { %> + <fmt:message key="common.title"/> + <% } // end if %> + + <% session.removeAttribute(SessionAttributes.SIGNED_PDF_DOCUMENT); %> + + <% + // PRESETS + // signature device + String device = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_DEVICE_KEY); + if (device == null) { + device = Constants.SIGNATURE_DEVICE_MOC; + session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_DEVICE_KEY, device); + } + // signature mode + String mode = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY); + if (forceTextualForMocca && Constants.SIGNATURE_DEVICE_MOC.equals(device)) { + mode = FormFields.VALUE_MODE_TEXTUAL; + session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY, mode); + } + if (mode == null) { + mode = FormFields.VALUE_MODE_BINARY; + session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY, mode); + } + + // PDF/A-1b + boolean pdfa = BooleanUtils.toBoolean((String) session.getAttribute(UpdateFormServlet.UPLOADFORM_PDFA_KEY)); + String TYPE_EN; + String TYPE_DE; + if (pdfa) { + TYPE_EN = SIGNATUREPROFILE_EN_PDFa; + TYPE_DE = SIGNATUREPROFILE_DE_PDFa; + } else { + TYPE_EN = SIGNATUREPROFILE_EN_nonPDFa; + TYPE_DE = SIGNATUREPROFILE_DE_nonPDFa; + } + + // signature type + String type = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_TYPE_KEY); + if (type == null) { + Locale locale = (Locale) session.getAttribute(LocaleParamFilter.LOCALE_SESSION_KEY); + if (locale == null) { + locale = request.getLocale(); + } + type = Locale.GERMAN.getLanguage().equals(locale.getLanguage()) ? TYPE_DE : TYPE_EN; + } else { + if (pdfa) { + if (SIGNATUREPROFILE_DE_nonPDFa.equals(type)) { + type = SIGNATUREPROFILE_DE_PDFa; + } else if (SIGNATUREPROFILE_EN_nonPDFa.equals(type)) { + type = SIGNATUREPROFILE_EN_PDFa; + } + } else { + if (SIGNATUREPROFILE_DE_PDFa.equals(type)) { + type = SIGNATUREPROFILE_DE_nonPDFa; + } else if (SIGNATUREPROFILE_EN_PDFa.equals(type)) { + type = SIGNATUREPROFILE_EN_nonPDFa; + } + } + } + session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_TYPE_KEY, type); + + // source + String source = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SOURCE_KEY); + if (source == null) { + source = FormFields.VALUE_SOURCE_FILE; + } + session.setAttribute(UpdateFormServlet.UPLOADFORM_SOURCE_KEY, source); + boolean freeText = FormFields.VALUE_SOURCE_FREETEXT.equals(source); + + // freetext + String freeTextValue = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_FREETEXT_KEY); + if (freeTextValue == null) { + freeTextValue = ""; + } + session.setAttribute(UpdateFormServlet.UPLOADFORM_FREETEXT_KEY, freeTextValue); + + %> + + +

+ <% + if (testMode) { + %> + + <% } else { %> + + <% } // end if %> +

+

+ <% if (freeText) { %> + + <% } else { %> + + <% } %> +

+
+ <% if (freeText) { %> + + <% } else { %> + + <% } %> +
+
+ + + + + + <% if (freeText) { %> + + <% } // end if %> +
+
+ + + + + + + + + + + + + + + + + + +
+ + + + onclick="return updateForm();"/>  +
+ <% if (forceTextualForMocca && Constants.SIGNATURE_DEVICE_MOC.equals(device)) {%> + + + <% } else { %> + + <% } %> +
+ +
+ + + <% if (freeText) { %> + + <% } else { %> + + <% } // end if freetext %> +
+ <% if ((!freeText && (FormFields.VALUE_MODE_TEXTUAL.equals(mode))) || pdfa) { %> +
+ : + <% if ((FormFields.VALUE_MODE_TEXTUAL.equals(mode))) { %> + <% if (!freeText) { %><% } %> + <% } // end if %> + <% if (pdfa) { %> <% } %> +
+ <% } // end if %> + + + + +
+ + + +
+ <% if (Constants.SIGNATURE_DEVICE_BKU.equals(device)) { %> +
+ + + +
+ <% } else if (Constants.SIGNATURE_DEVICE_MOC.equals(device)) { %> +
+ <fmt:message key="/> +
+ <% } else { %> +
+ <% } // end if %> +
+ " onclick="return submitForm(false);"/> + " onclick="return submitForm(true);"/> +
+ + + + + diff --git a/pdf-as-web/src/main/webapp/jsp/verifylist.jsp b/pdf-as-web/src/main/webapp/jsp/verifylist.jsp new file mode 100644 index 0000000..2ebca39 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/verifylist.jsp @@ -0,0 +1,73 @@ +<%@ page import="at.gv.egiz.pdfas.web.FormFields" %> +<%@ page import="at.gv.egiz.pdfas.web.servlets.VerifyPreviewServlet"%> +<%@ page import="at.gv.egiz.pdfas.api.commons.SignatureInformation"%> +<%@ page import="at.gv.egiz.pdfas.web.session.VerifySessionInformation"%> +<%@ page contentType="text/html; charset=UTF-8" %> +<%@ page import="java.util.List" %> +<%@ page errorPage="error_verify.jsp" %> +<%@ page import="at.gv.egiz.pdfas.web.helper.SessionHelper"%> +<%@ include file="language.jsp" %> +<% + + VerifySessionInformation si = (VerifySessionInformation) SessionHelper.getSession(request); + + List signature_holders = si.analyzeResult.getSignatures(); + +%> + + + + + <fmt:message key="common.title"/> + + +

+ <% + if (signature_holders.size() > 1) { + %> +

+ <% } else { %> +

+ <% + } + %> + <% + for (int i = 0; i < signature_holders.size(); i++) { + SignatureInformation sigInfo = (SignatureInformation) signature_holders.get(i); + %> +
+
+ <%= VerifyPreviewServlet.renderRequiredKeysText(getServletContext(), sigInfo) %> +
" + accept-charset="UTF-8" + method="get" + style="float:left;"> + + + " /> +
+
" + accept-charset="UTF-8" + method="get" + style="float:left;"> + + + " /> +
+
+ <% + } + %> +
+
+
" + accept-charset="UTF-8" + method="get"> + + + " /> +
+
+ + + diff --git a/pdf-as-web/src/main/webapp/jsp/verifypreview.jsp b/pdf-as-web/src/main/webapp/jsp/verifypreview.jsp new file mode 100644 index 0000000..a65aa4e --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/verifypreview.jsp @@ -0,0 +1,60 @@ +<%@page import="at.gv.egiz.pdfas.api.commons.SignatureInformation"%> +<%@page import="at.gv.egiz.pdfas.web.servlets.VerifyPreviewServlet"%> +<%@page import="at.gv.egiz.pdfas.web.FormFields"%> +<%@page import="at.gv.egiz.pdfas.web.session.VerifySessionInformation"%> +<%@ page contentType="text/html; charset=UTF-8" %> +<%@ page errorPage="error_verify.jsp" %> +<%@ page import="java.util.List" %> +<%@ page import="at.gv.egiz.pdfas.web.helper.SessionHelper"%> +<%@ include file="language.jsp" %> +<% + String btlurl = (String)request.getAttribute("btlurl"); + + VerifySessionInformation si = (VerifySessionInformation) SessionHelper.getSession(request); + + List signature_holders = si.analyzeResult.getSignatures(); + Integer ver_wh = (Integer) request.getAttribute(FormFields.FIELD_VERIFY_WHICH); + int verify_which = ver_wh.intValue(); + SignatureInformation signatureInfo = (SignatureInformation) signature_holders.get(verify_which); + String signedText = (String)request.getAttribute(FormFields.FIELD_SIGNED_TEXT); +%> + + + + <fmt:message key="common.title"/> + + + +

+

+
" + name="submitform" + enctype="multipart/form-data" + accept-charset="UTF-8" + method="post"> + +
+
+ + <%= VerifyPreviewServlet.renderRequiredKeys(getServletContext(), signatureInfo, "", false) %> +
+ + " /> + " onclick="document.submitform.verify.value='true'" /> +
+
+ + + + + diff --git a/pdf-as-web/src/main/webapp/jsp/verifyupload.jsp b/pdf-as-web/src/main/webapp/jsp/verifyupload.jsp new file mode 100644 index 0000000..34e791e --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/verifyupload.jsp @@ -0,0 +1,41 @@ +<%@page import="at.gv.egiz.pdfas.web.FormFields"%> +<%@ page contentType="text/html; charset=UTF-8" %> + +<%@ include file="language.jsp" %> + + + + + <fmt:message key="common.title"/> + + +

+

+

+
+ + + + + + + + + + +
<%= FormFields.generateConnectorSelectBox(getServletContext()) %>
+ +
+ + + +
+ + " /> + " onclick="document.submitform.<%= FormFields.FIELD_PREVIEW %>.value='true'" /> + +
+
+ + + \ No newline at end of file diff --git a/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp b/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp new file mode 100644 index 0000000..1349a67 --- /dev/null +++ b/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp @@ -0,0 +1,37 @@ + +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%> + + +<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%> +<%@ page import="at.gv.egiz.pdfas.web.helper.LocalRequestHelper" %> + +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> + + + + <% + boolean testMode = request.getContextPath().startsWith("/test-"); + %> + + + + + <fmt:message key="<%= testMode ? \"test.common.title\" : \"common.title\" %>"/> + + + + + + + + +
+ + + + +
+
+ + + -- cgit v1.2.3