From 0184c140614b99a5037cbd8f969b7512888cd37d Mon Sep 17 00:00:00 2001 From: knowcenter Date: Thu, 17 May 2007 15:25:10 +0000 Subject: webapp git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@86 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- webapp/WEB-INF/lib/ant-1.6.5.jar | Bin 0 -> 1034049 bytes webapp/WEB-INF/lib/axis-1.0.jar | Bin 0 -> 1101593 bytes webapp/WEB-INF/lib/axis-jaxrpc-1.0.jar | Bin 0 -> 35635 bytes webapp/WEB-INF/lib/axis-saaj-1.0.jar | Bin 0 -> 18463 bytes webapp/WEB-INF/lib/axis-wsdl4j-1.0.jar | Bin 0 -> 109356 bytes webapp/WEB-INF/lib/commons-codec-1.3.jar | Bin 0 -> 46725 bytes webapp/WEB-INF/lib/commons-discovery-0.2.jar | Bin 0 -> 71442 bytes webapp/WEB-INF/lib/commons-fileupload-1.1.jar | Bin 0 -> 31825 bytes webapp/WEB-INF/lib/commons-httpclient-3.0.jar | Bin 0 -> 279383 bytes webapp/WEB-INF/lib/commons-io-1.1.jar | Bin 0 -> 61562 bytes webapp/WEB-INF/lib/commons-logging-1.0.3.jar | Bin 0 -> 31605 bytes webapp/WEB-INF/lib/iaik_ecc_eval_signed-2.15.jar | Bin 0 -> 134778 bytes webapp/WEB-INF/lib/iaik_jce_eval_signed-3.142.jar | Bin 0 -> 807538 bytes webapp/WEB-INF/lib/junit-3.8.jar | Bin 0 -> 121658 bytes webapp/WEB-INF/lib/log4j-1.2.13.jar | Bin 0 -> 358180 bytes webapp/WEB-INF/lib/lucene-1.4.3.jar | Bin 0 -> 323983 bytes webapp/WEB-INF/lib/lucene-demos-1.4.3.jar | Bin 0 -> 45800 bytes webapp/WEB-INF/lib/servlet-api-2.4.jar | Bin 0 -> 97693 bytes webapp/WEB-INF/lib/xercesImpl-2.7.1.jar | Bin 0 -> 1203860 bytes webapp/WEB-INF/web.xml | 108 ++++++++++++++++++++++ webapp/css/styles.css | 59 ++++++++++++ webapp/dataok.html | 20 ++++ webapp/index.html | 22 +++++ webapp/jsp/error.jsp | 26 ++++++ webapp/jsp/local_connection_page.jsp | 50 ++++++++++ webapp/jsp/null_request_page.jsp | 47 ++++++++++ webapp/jsp/redirect_refresh_page.jsp | 36 ++++++++ webapp/jsp/results.jsp | 96 +++++++++++++++++++ webapp/jsp/signpreview.jsp | 91 ++++++++++++++++++ webapp/jsp/signupload.jsp | 81 ++++++++++++++++ webapp/jsp/verifylist.jsp | 96 +++++++++++++++++++ webapp/jsp/verifypreview.jsp | 72 +++++++++++++++ webapp/jsp/verifyupload.jsp | 98 ++++++++++++++++++++ 33 files changed, 902 insertions(+) create mode 100644 webapp/WEB-INF/lib/ant-1.6.5.jar create mode 100644 webapp/WEB-INF/lib/axis-1.0.jar create mode 100644 webapp/WEB-INF/lib/axis-jaxrpc-1.0.jar create mode 100644 webapp/WEB-INF/lib/axis-saaj-1.0.jar create mode 100644 webapp/WEB-INF/lib/axis-wsdl4j-1.0.jar create mode 100644 webapp/WEB-INF/lib/commons-codec-1.3.jar create mode 100644 webapp/WEB-INF/lib/commons-discovery-0.2.jar create mode 100644 webapp/WEB-INF/lib/commons-fileupload-1.1.jar create mode 100644 webapp/WEB-INF/lib/commons-httpclient-3.0.jar create mode 100644 webapp/WEB-INF/lib/commons-io-1.1.jar create mode 100644 webapp/WEB-INF/lib/commons-logging-1.0.3.jar create mode 100644 webapp/WEB-INF/lib/iaik_ecc_eval_signed-2.15.jar create mode 100644 webapp/WEB-INF/lib/iaik_jce_eval_signed-3.142.jar create mode 100644 webapp/WEB-INF/lib/junit-3.8.jar create mode 100644 webapp/WEB-INF/lib/log4j-1.2.13.jar create mode 100644 webapp/WEB-INF/lib/lucene-1.4.3.jar create mode 100644 webapp/WEB-INF/lib/lucene-demos-1.4.3.jar create mode 100644 webapp/WEB-INF/lib/servlet-api-2.4.jar create mode 100644 webapp/WEB-INF/lib/xercesImpl-2.7.1.jar create mode 100644 webapp/WEB-INF/web.xml create mode 100644 webapp/css/styles.css create mode 100644 webapp/dataok.html create mode 100644 webapp/index.html create mode 100644 webapp/jsp/error.jsp create mode 100644 webapp/jsp/local_connection_page.jsp create mode 100644 webapp/jsp/null_request_page.jsp create mode 100644 webapp/jsp/redirect_refresh_page.jsp create mode 100644 webapp/jsp/results.jsp create mode 100644 webapp/jsp/signpreview.jsp create mode 100644 webapp/jsp/signupload.jsp create mode 100644 webapp/jsp/verifylist.jsp create mode 100644 webapp/jsp/verifypreview.jsp create mode 100644 webapp/jsp/verifyupload.jsp diff --git a/webapp/WEB-INF/lib/ant-1.6.5.jar b/webapp/WEB-INF/lib/ant-1.6.5.jar new file mode 100644 index 0000000..3beb3b8 Binary files /dev/null and b/webapp/WEB-INF/lib/ant-1.6.5.jar differ diff --git a/webapp/WEB-INF/lib/axis-1.0.jar b/webapp/WEB-INF/lib/axis-1.0.jar new file mode 100644 index 0000000..7cf3102 Binary files /dev/null and b/webapp/WEB-INF/lib/axis-1.0.jar differ diff --git a/webapp/WEB-INF/lib/axis-jaxrpc-1.0.jar b/webapp/WEB-INF/lib/axis-jaxrpc-1.0.jar new file mode 100644 index 0000000..4a20816 Binary files /dev/null and b/webapp/WEB-INF/lib/axis-jaxrpc-1.0.jar differ diff --git a/webapp/WEB-INF/lib/axis-saaj-1.0.jar b/webapp/WEB-INF/lib/axis-saaj-1.0.jar new file mode 100644 index 0000000..cf43f1f Binary files /dev/null and b/webapp/WEB-INF/lib/axis-saaj-1.0.jar differ diff --git a/webapp/WEB-INF/lib/axis-wsdl4j-1.0.jar b/webapp/WEB-INF/lib/axis-wsdl4j-1.0.jar new file mode 100644 index 0000000..e90968e Binary files /dev/null and b/webapp/WEB-INF/lib/axis-wsdl4j-1.0.jar differ diff --git a/webapp/WEB-INF/lib/commons-codec-1.3.jar b/webapp/WEB-INF/lib/commons-codec-1.3.jar new file mode 100644 index 0000000..957b675 Binary files /dev/null and b/webapp/WEB-INF/lib/commons-codec-1.3.jar differ diff --git a/webapp/WEB-INF/lib/commons-discovery-0.2.jar b/webapp/WEB-INF/lib/commons-discovery-0.2.jar new file mode 100644 index 0000000..b885548 Binary files /dev/null and b/webapp/WEB-INF/lib/commons-discovery-0.2.jar differ diff --git a/webapp/WEB-INF/lib/commons-fileupload-1.1.jar b/webapp/WEB-INF/lib/commons-fileupload-1.1.jar new file mode 100644 index 0000000..6fb2120 Binary files /dev/null and b/webapp/WEB-INF/lib/commons-fileupload-1.1.jar differ diff --git a/webapp/WEB-INF/lib/commons-httpclient-3.0.jar b/webapp/WEB-INF/lib/commons-httpclient-3.0.jar new file mode 100644 index 0000000..54a9300 Binary files /dev/null and b/webapp/WEB-INF/lib/commons-httpclient-3.0.jar differ diff --git a/webapp/WEB-INF/lib/commons-io-1.1.jar b/webapp/WEB-INF/lib/commons-io-1.1.jar new file mode 100644 index 0000000..624fc1a Binary files /dev/null and b/webapp/WEB-INF/lib/commons-io-1.1.jar differ diff --git a/webapp/WEB-INF/lib/commons-logging-1.0.3.jar b/webapp/WEB-INF/lib/commons-logging-1.0.3.jar new file mode 100644 index 0000000..b99c937 Binary files /dev/null and b/webapp/WEB-INF/lib/commons-logging-1.0.3.jar differ diff --git a/webapp/WEB-INF/lib/iaik_ecc_eval_signed-2.15.jar b/webapp/WEB-INF/lib/iaik_ecc_eval_signed-2.15.jar new file mode 100644 index 0000000..dbed40b Binary files /dev/null and b/webapp/WEB-INF/lib/iaik_ecc_eval_signed-2.15.jar differ diff --git a/webapp/WEB-INF/lib/iaik_jce_eval_signed-3.142.jar b/webapp/WEB-INF/lib/iaik_jce_eval_signed-3.142.jar new file mode 100644 index 0000000..a9cdd95 Binary files /dev/null and b/webapp/WEB-INF/lib/iaik_jce_eval_signed-3.142.jar differ diff --git a/webapp/WEB-INF/lib/junit-3.8.jar b/webapp/WEB-INF/lib/junit-3.8.jar new file mode 100644 index 0000000..571bc02 Binary files /dev/null and b/webapp/WEB-INF/lib/junit-3.8.jar differ diff --git a/webapp/WEB-INF/lib/log4j-1.2.13.jar b/webapp/WEB-INF/lib/log4j-1.2.13.jar new file mode 100644 index 0000000..dde9972 Binary files /dev/null and b/webapp/WEB-INF/lib/log4j-1.2.13.jar differ diff --git a/webapp/WEB-INF/lib/lucene-1.4.3.jar b/webapp/WEB-INF/lib/lucene-1.4.3.jar new file mode 100644 index 0000000..58add99 Binary files /dev/null and b/webapp/WEB-INF/lib/lucene-1.4.3.jar differ diff --git a/webapp/WEB-INF/lib/lucene-demos-1.4.3.jar b/webapp/WEB-INF/lib/lucene-demos-1.4.3.jar new file mode 100644 index 0000000..55a9afd Binary files /dev/null and b/webapp/WEB-INF/lib/lucene-demos-1.4.3.jar differ diff --git a/webapp/WEB-INF/lib/servlet-api-2.4.jar b/webapp/WEB-INF/lib/servlet-api-2.4.jar new file mode 100644 index 0000000..dd326d3 Binary files /dev/null and b/webapp/WEB-INF/lib/servlet-api-2.4.jar differ diff --git a/webapp/WEB-INF/lib/xercesImpl-2.7.1.jar b/webapp/WEB-INF/lib/xercesImpl-2.7.1.jar new file mode 100644 index 0000000..0b100e1 Binary files /dev/null and b/webapp/WEB-INF/lib/xercesImpl-2.7.1.jar differ diff --git a/webapp/WEB-INF/web.xml b/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..14184ff --- /dev/null +++ b/webapp/WEB-INF/web.xml @@ -0,0 +1,108 @@ + + + + + EGIZ PDF-AS + + PDF-AS + + + work-dir + C:\wprinz\Filer\egiz2\workspace\06PDF-AS\work + + The working directory of PDF-AS. + Points to a directory on the local file system where templates, config files, certificates etc. are found. + + + + + at.knowcenter.wag.egov.egiz.web.PdfASServletContextListener + + + + Sign + at.knowcenter.wag.egov.egiz.web.servlets.SignServlet + + + + SignPreview + at.knowcenter.wag.egov.egiz.web.servlets.SignPreviewServlet + + + + RetrieveSignatureData + at.knowcenter.wag.egov.egiz.web.servlets.RetrieveSignatureDataServlet + + + + DataURL + at.knowcenter.wag.egov.egiz.web.servlets.DataURLServlet + + + + Verify + at.knowcenter.wag.egov.egiz.web.servlets.VerifyServlet + + + + VerifyPreview + at.knowcenter.wag.egov.egiz.web.servlets.VerifyPreviewServlet + + + + AsynchronousDataResponder + at.knowcenter.wag.egov.egiz.web.AsynchronousDataResponder + + + + AsynchronousRedirectResponder + at.knowcenter.wag.egov.egiz.web.AsynchronousRedirectResponder + + + + + Sign + /Sign + + + + SignPreview + /SignPreview + + + + RetrieveSignatureData + /RetrieveSignatureData + + + + DataURL + /DataURL + + + + Verify + /Verify + + + + VerifyPreview + /VerifyPreview + + + + AsynchronousDataResponder + /AsynchronousDataResponder + + + + AsynchronousRedirectResponder + /AsynchronousRedirectResponder + + + + + \ No newline at end of file diff --git a/webapp/css/styles.css b/webapp/css/styles.css new file mode 100644 index 0000000..4575ccc --- /dev/null +++ b/webapp/css/styles.css @@ -0,0 +1,59 @@ +body {margin:10px;padding:0;font:1em Arial, sans-serif} + +//label {margin:0px;color:green;border:0px solid red;display:block; float:left; width:10em;text-align:right;} +//div {margin:0 0; text-align:center;} +//.ip, .inf {margin:2px;font-size:0.8em;} +//#nav, #eb {border:1px solid #366090; margin:0 10%; font-size:1.5em;} +//#nh, #sh {color:#fff;background:#366090} +//#eh {color:#000;background:#f63} +//#eb {border:1px solid #f63;} +//#ct, #err, #res {margin:1em;text-align:left;} +//#ct {white-space:nowrap;} +//.pr {font:0.7em Arial, sans-serif;width:100%} + + +.nt {font:0.7em Arial, sans-serif; border:1px solid black;text-align:left;padding:4px;background:#ddd;height:16em;overflow:auto;} +.big {margin:100px; font-size:1.5em;} +.sca {font:0.8em Arial, sans-serif; color:green;} +.sin {font:0.7em Arial, sans-serif; width:99%;} +.sim {width:120px; height:120px;} +.st {border:1px solid #000; width:100%; border-spacing:2px;} +.sst {font:0.7em Arial, sans-serif; text-align:left;white-space:normal; background:#eee;} +fieldset {font:0.7em Arial, sans-serif; text-align:left; padding:2px;} +.srt {} +.srtd {background:#ffffe7} + +.srcc_0 {background:#bdff7b;} +.srcc_1, .srcc_3 {background:#ff0;} +.srcc_2, .srcc_4, .srcc_5, .srcc_99 {background:#f66;} + +.srsc_0 {background:#bdff7b;} +.srsc_1 {background:#f66;} +.srsc_2 {background:#f66;} + +.srmc_0 {background:#bdff7b;} +.srmc_1, .srmc_99 {background:#ff0;} +.srmc_2, .srmc_3 {background:#f66;} + +.sigprevtablediv {width:100%;} + + + + +.maindiv {margin:0 0; text-align:center;} +.mainframe {border:1px solid #366090; margin:0 10%; font-size:1.5em;} +.mainheadline {color:#fff;background:#366090} + +.errorheadline {color:#000;background:#f63} + +.contentsdiv {margin:1em;text-align:left;} + +.uploadlabel {margin:0px;color:green;border:0px solid red;display:block; float:left; width:10em;text-align:right;} + +.field {margin:2px;font-size:0.8em;} +.button {margin:2px;font-size:0.8em;} + +.previewfield {font:0.7em Arial, sans-serif;width:100%} + +.listtype {font-weight:bold; text-align:left;} +.listtable {font:0.7em Arial, sans-serif; text-align:left;} \ No newline at end of file diff --git a/webapp/dataok.html b/webapp/dataok.html new file mode 100644 index 0000000..372e148 --- /dev/null +++ b/webapp/dataok.html @@ -0,0 +1,20 @@ + + + +PDF-AS Amtssignaturen + + + +
+

PDF-AS Amtssignaturen

+
+
Datenänderung
+ +

+Die Daten wurden erfolgreich übernommen. +

+ +
+
+ + \ No newline at end of file diff --git a/webapp/index.html b/webapp/index.html new file mode 100644 index 0000000..b2f0ddb --- /dev/null +++ b/webapp/index.html @@ -0,0 +1,22 @@ + + + +PDF-AS Amtssignaturen + + + +
+

PDF-AS Amtssignaturen

+ +
+ + \ No newline at end of file diff --git a/webapp/jsp/error.jsp b/webapp/jsp/error.jsp new file mode 100644 index 0000000..0d77ead --- /dev/null +++ b/webapp/jsp/error.jsp @@ -0,0 +1,26 @@ + + + +PDF-AS Amtssignaturen Resultat + + + +<% + String error = (request.getAttribute("error") == null ? "" : request.getAttribute("error").toString()); + String cause = (request.getAttribute("cause") == null ? "" : request.getAttribute("cause").toString()); + %> +
+

PDF-AS Amtssignaturen

+
+
Ein Fehler ist aufgetreten
+
+<%= error %>
+
Grund: +
+<%= cause %> +
+
+Weiter... +
+ + \ No newline at end of file diff --git a/webapp/jsp/local_connection_page.jsp b/webapp/jsp/local_connection_page.jsp new file mode 100644 index 0000000..91ba403 --- /dev/null +++ b/webapp/jsp/local_connection_page.jsp @@ -0,0 +1,50 @@ +<%@ page contentType="text/html; charset=UTF-8" %> +<% + String local_request_url = (String)request.getAttribute("local_request_url"); + String quoted_request = (String)request.getAttribute("quoted_request"); + String data_url = (String)request.getAttribute("data_url"); + String redirect_url = (String)request.getAttribute("redirect_url"); +%> + + + + +PDF-AS Amtssignaturen Lokale Verbindung + + + + + +
+ +

PDF-AS Amtssignaturen

+ +
+
Verbindung zu BKU/A1
+ +
Die Verbindung wird hergestellt.
Bitte haben sie etwas Geduld.
+ + +
+ + + + + + + + + + + +
+ + +
+zurück +
+ + diff --git a/webapp/jsp/null_request_page.jsp b/webapp/jsp/null_request_page.jsp new file mode 100644 index 0000000..60e35a9 --- /dev/null +++ b/webapp/jsp/null_request_page.jsp @@ -0,0 +1,47 @@ +<%@ page contentType="text/html; charset=UTF-8" %> +<% + String local_request_url = (String)request.getAttribute("local_request_url"); + String data_url = (String)request.getAttribute("data_url"); +%> + + + + +PDF-AS Amtssignaturen Lokale Verbindung + + + + + +
+ +

PDF-AS Amtssignaturen

+ +
+
Verbindung zu BKU/A1
+ +
Die Verbindung wird hergestellt.
Bitte haben sie etwas Geduld.
+ + +
+ + + + + + + + + + +
+ + +
+zurück +
+ + diff --git a/webapp/jsp/redirect_refresh_page.jsp b/webapp/jsp/redirect_refresh_page.jsp new file mode 100644 index 0000000..ee047c9 --- /dev/null +++ b/webapp/jsp/redirect_refresh_page.jsp @@ -0,0 +1,36 @@ +<%@ page contentType="text/html; charset=UTF-8" %> +<% + String refresh_url = (String)request.getAttribute("refresh_url"); +%> + + + + + + + +PDF-AS Amtssignaturen Lokale Verbindung + + + + +
+ +

PDF-AS Amtssignaturen

+ +
+
Verbindung zu BKU/A1
+ +
Bitte warten.
Sobald ein Ergebnis vorliegt, wird es hier angezeigt.
+ +
+Diese Seite lädt sich automatisch neu.
+Sollte dies nicht funktionieren, so folgen Sie bitte diesem Link:
+<%= refresh_url %> +
+ +
+zurück +
+ + diff --git a/webapp/jsp/results.jsp b/webapp/jsp/results.jsp new file mode 100644 index 0000000..833c35a --- /dev/null +++ b/webapp/jsp/results.jsp @@ -0,0 +1,96 @@ +<%@ page contentType="text/html; charset=UTF-8" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Iterator" %> +<%@ page import="at.knowcenter.wag.egov.egiz.sig.SignatureResponse" %> +<% + List results = (List) request.getAttribute("results"); + Object bb = request.getAttribute("backbutton"); + boolean backbutton = true; + if (bb != null && bb.equals("false")) + { + backbutton = false; + } +%> + + + + + PDF-AS Amtssignaturen Resultat + + + +
+

PDF-AS Amtssignaturen

+
+
Resultat
+ +
+<% + Iterator resit = results.iterator(); + while (resit.hasNext()) + { + SignatureResponse result = (SignatureResponse) resit.next(); +%> + + + + +
Zertifikat + + + + + +<% + List public_properties = result.getPublicProperties(); + Iterator propit = public_properties.iterator(); + while (propit.hasNext()) + { + String public_property = (String) propit.next(); +%> + +<% + } +%> + + +
Signator:<%= result.getX509SubjectName() %>
Aussteller:<%= result.getX509IssuerName() %>
Seriennummer:<%= result.getX509SerialNumber() %>
Eigenschaft:<%= public_property %>
Zertifikat:<%= result.getCertificateCheckInfo() %>
+
+
Signatur-Check +
<%= result.getSignatureCheckInfo() %>
+
+
Manifest-Check +
<%= result.getSignatureManifestCheckInfo() %>
+
+ + + + + +<% + if (resit.hasNext()) + { +%> +
+<% + } + } +%> +
+ +
+<% + if (backbutton) + { +%> +zurück +<% + } +%> +
+ + + + + + diff --git a/webapp/jsp/signpreview.jsp b/webapp/jsp/signpreview.jsp new file mode 100644 index 0000000..4b9189a --- /dev/null +++ b/webapp/jsp/signpreview.jsp @@ -0,0 +1,91 @@ +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionInformation" %> +<%@ page import="at.knowcenter.wag.egov.egiz.sig.SignatureData" %> +<% + SessionInformation si = (SessionInformation) 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.iui.signature_data; + document_text = new String(data.getData(), data.getCharacterEncoding()); + } +%> + + + + + PDF-AS Amtssignaturen Vorschau + + + +
+

PDF-AS Amtssignaturen

+
+
Vorschau: Dokument Signieren
+ + +<% + if (si.mode.equals(FormFields.VALUE_MODE_TEXTUAL)) + { +%> +
+
+ + +
<%= document_text %>
+ +
+ + + +
+
+ + +<% + } + else + { +%> + +
+
+ + + +
+
+ +
+ +
+
+ + + +
+
+ +<% + } +%> + + +
+zurück +
+ + diff --git a/webapp/jsp/signupload.jsp b/webapp/jsp/signupload.jsp new file mode 100644 index 0000000..1474da5 --- /dev/null +++ b/webapp/jsp/signupload.jsp @@ -0,0 +1,81 @@ +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %> + + + + PDF-AS Amtssignaturen + + + +
+

PDF-AS Amtssignaturen

+
+
Dokument Signatur erstellen
+ +
+ +
+ + +
+
+ + + + + +
+ + + +<%= FormFields.generateTypeSelectBox() %> + +
+ + + +<%= FormFields.generateConnectorSelectBox() %> + +
+ + + + + +
+ + + + + +
+
+ + + + + + + + +
+
+ +
+zurück +
+ + \ No newline at end of file diff --git a/webapp/jsp/verifylist.jsp b/webapp/jsp/verifylist.jsp new file mode 100644 index 0000000..b041c02 --- /dev/null +++ b/webapp/jsp/verifylist.jsp @@ -0,0 +1,96 @@ +<%@ page contentType="text/html; charset=UTF-8" %> +<%@ page import="java.util.List" %> +<%@ page import="at.knowcenter.wag.egov.egiz.pdf.SignatureHolder" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionInformation" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.VerifyPreviewServlet" %> +<% + SessionInformation si = (SessionInformation) request.getSession(false).getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION); + List signature_holders = si.signature_holders; + +%> + + + + + PDF-AS Amtssignaturen Vorschau + + + +
+

PDF-AS Amtssignaturen

+
+<% + if (signature_holders.size() > 1) + { +%> +
Extrahierte Signaturen
+<% + } + else + { +%> +
Extrahierte Signatur
+<% + } +%> + + +
+ + +<% + for (int i = 0; i < signature_holders.size(); i++) + { + SignatureHolder holder = (SignatureHolder) signature_holders.get(i); +%> + + +<%= VerifyPreviewServlet.renderRequiredKeysText(holder.getSignatureObject()) %> + +
" + accept-charset="UTF-8" + style="float:left;" + method="get" + target="_blank"> + + + + +
+ +
" + accept-charset="UTF-8" + method="get" + style="float:left;" + target="_blank"> + + + + +
+ +
+ +<% + } +%> + +
" + accept-charset="UTF-8" + method="get"> + + + + +
+ + +
+ +
+zurück +
+ + \ No newline at end of file diff --git a/webapp/jsp/verifypreview.jsp b/webapp/jsp/verifypreview.jsp new file mode 100644 index 0000000..cd4549c --- /dev/null +++ b/webapp/jsp/verifypreview.jsp @@ -0,0 +1,72 @@ +<%@ page contentType="text/html; charset=UTF-8" %> +<%@ page import="java.util.List" %> +<%@ page import="at.knowcenter.wag.egov.egiz.pdf.SignatureHolder" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionInformation" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.VerifyPreviewServlet" %> +<% + SessionInformation si = (SessionInformation) request.getSession(false).getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION); + List signature_holders = si.signature_holders; + Integer ver_wh = (Integer) request.getAttribute(FormFields.FIELD_VERIFY_WHICH); + int verify_which = ver_wh.intValue(); + SignatureHolder signature_holder = (SignatureHolder) signature_holders.get(verify_which); +%> + + + + +PDF-AS Amtssignaturen Vorschau + + + + + + + +
+ +

PDF-AS Amtssignaturen

+ +
+
Vorschau: Dokument Prüfen
+ +
" + name="submitform" + enctype="multipart/form-data" + accept-charset="UTF-8" + method="post"> +
+ + + + +
Rekonstruktion der Signaturmarke:
+ + +<%= VerifyPreviewServlet.renderRequiredKeys(signature_holder.getSignatureObject(), "", false) %> + +
+ + + + + + + + + +
+
+ +
+ +
+ + + diff --git a/webapp/jsp/verifyupload.jsp b/webapp/jsp/verifyupload.jsp new file mode 100644 index 0000000..ab63e2f --- /dev/null +++ b/webapp/jsp/verifyupload.jsp @@ -0,0 +1,98 @@ +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %> +<% + boolean freetext_entry = false; + String parameter_freetext = (String)request.getParameter(FormFields.PARAMETER_FREE_TEXT_ENTRY); + if (parameter_freetext != null && parameter_freetext.equals(FormFields.VALUE_TRUE)) + { + freetext_entry = true; + } +%> + + + + PDF-AS Amtssignaturen + + + +
+

PDF-AS Amtssignaturen

+
+
Dokument Signatur prüfen
+ + +
+ +
+ +<% + if (freetext_entry) + { +%> +
Vollständiger Dokumenttext:
+ +
+<% + } + else + { +%> +
+ + + + +<% + } +%> + +
+ + + +<%= FormFields.generateConnectorSelectBox() %> + +<% + if (freetext_entry) + { +%> + +
+ + + +textuell + +<% + } + else + { +%> + +<% + } +%> + +
+
+ + + + + + + +
+
+ +
+zurück +
+ + \ No newline at end of file -- cgit v1.2.3