From f4c61a145d4f9a537c87fe67db36de8c28f2e352 Mon Sep 17 00:00:00 2001 From: tknall Date: Thu, 3 Apr 2008 12:28:41 +0000 Subject: Web application adapted for Maven2 (/webapps -> /src/main/webapps). Recognition of citizen card environment integrated. New style sheets. Web app classes adapted in order to avoid popup blocker of ie7 and to avoid an ITS bku bug. Maven2 repository updated. Eclipse project settings adapted in order to enable Eclipse Web Tools Platform usage. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@256 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp | 61 ++++++++++++++++++++++++ src/main/webapp/jsp/dataok.jsp | 24 ++++++++++ src/main/webapp/jsp/download.jsp | 40 ++++++++++++++++ src/main/webapp/jsp/error.jsp | 48 +++++++++++++++++++ src/main/webapp/jsp/error_verify.jsp | 48 +++++++++++++++++++ src/main/webapp/jsp/null_request_page.jsp | 46 ++++++++++++++++++ src/main/webapp/jsp/results.jsp | 78 +++++++++++++++++++++++++++++++ src/main/webapp/jsp/signpreview.jsp | 68 +++++++++++++++++++++++++++ src/main/webapp/jsp/signupload.jsp | 68 +++++++++++++++++++++++++++ src/main/webapp/jsp/verifylist.jsp | 73 +++++++++++++++++++++++++++++ src/main/webapp/jsp/verifypreview.jsp | 60 ++++++++++++++++++++++++ src/main/webapp/jsp/verifyupload.jsp | 38 +++++++++++++++ 12 files changed, 652 insertions(+) create mode 100644 src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp create mode 100644 src/main/webapp/jsp/dataok.jsp create mode 100644 src/main/webapp/jsp/download.jsp create mode 100644 src/main/webapp/jsp/error.jsp create mode 100644 src/main/webapp/jsp/error_verify.jsp create mode 100644 src/main/webapp/jsp/null_request_page.jsp create mode 100644 src/main/webapp/jsp/results.jsp create mode 100644 src/main/webapp/jsp/signpreview.jsp create mode 100644 src/main/webapp/jsp/signupload.jsp create mode 100644 src/main/webapp/jsp/verifylist.jsp create mode 100644 src/main/webapp/jsp/verifypreview.jsp create mode 100644 src/main/webapp/jsp/verifyupload.jsp (limited to 'src/main/webapp/jsp') diff --git a/src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp b/src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp new file mode 100644 index 0000000..3264093 --- /dev/null +++ b/src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp @@ -0,0 +1,61 @@ +<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage=""%> + +<%@ page import="org.apache.commons.lang.time.DateFormatUtils" %> +<%@ page import="java.util.Date" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Signaturwert +
Aqs3vMeF81wm/UJjIcLOzUs9
+
dxTBzhi2RC8avQyMAmc3v
+
WEj9HT1DI3iish4smRr
+
Signatur-LogoUnterzeichner
Datum/Zeit-UTC<%= DateFormatUtils.formatUTC(new Date(), "yyyy-MM-dd'T'HH:mm:ss'Z'", request.getLocale()) %>
Aussteller-Zertifikat +
CN=Ausstellername,
+
O=Ausstellerorganisation,
+
C=AT
+
Serien-Nr.123456
Methode +
urn:pdfsigfilter:
+
bka.gv.at:
+
text:v1.1.0
+
Parameter +
etsi-bka-1.0@1234567890-123456789@
+
12345-1234-
+
0-
+
12345-
+
12345
Prüfinformation + Informationen zur Prüfung der elektronischen Signatur und des Ausdrucks finden Sie unter: +
diff --git a/src/main/webapp/jsp/dataok.jsp b/src/main/webapp/jsp/dataok.jsp new file mode 100644 index 0000000..7fc1b96 --- /dev/null +++ b/src/main/webapp/jsp/dataok.jsp @@ -0,0 +1,24 @@ + + + +PDF-AS Amtssignaturen + + + +
+

PDF-AS Amtssignaturen

+
+
Datenänderung
+ +

+Die Daten wurden erfolgreich übernommen. +

+ +
+<% + String btlurl = (String)request.getAttribute("btlurl"); +%> +zurück zur Liste +
+ + \ No newline at end of file diff --git a/src/main/webapp/jsp/download.jsp b/src/main/webapp/jsp/download.jsp new file mode 100644 index 0000000..62a5417 --- /dev/null +++ b/src/main/webapp/jsp/download.jsp @@ -0,0 +1,40 @@ +<%@ page contentType="text/html; charset=UTF-8"%> + +<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %> + +<% + String downloadURL = (String) session.getAttribute(SessionAttributes.DOWNLOAD_URL_FOR_SIGNED_PDF_DOCUMENT); +%> + + + + PDF-Signaturen Lokale Verbindung + + + + +

PDF-Signaturen

+

Dokument Signatur erstellen

+
Der Signatur-Vorgang ist abgeschlossen. Das signierte Dokument kann nun heruntergeladen werden.
Hinweis: Der Download ist nur einmalig möglich. Das Dokument wird nicht am Server gespeichert.
+
+
+ +
+
+ zurück + + + diff --git a/src/main/webapp/jsp/error.jsp b/src/main/webapp/jsp/error.jsp new file mode 100644 index 0000000..48a7f50 --- /dev/null +++ b/src/main/webapp/jsp/error.jsp @@ -0,0 +1,48 @@ +<%@ page isErrorPage="true" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.LocalRequestHelper" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.SignServlet" %> +<%@ page import="at.knowcenter.wag.egov.egiz.exceptions.*" %> +<%@ page import="java.io.*" %> + + + + + + PDF-Signaturen Resultat + + + +<% + 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()); +%> + + +

PDF-Signaturen

+

Ein Fehler ist aufgetreten

+
<%= error %>
+
Ursache: <%= cause %>
+
+ zurück +
+		<%
+		  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/src/main/webapp/jsp/error_verify.jsp b/src/main/webapp/jsp/error_verify.jsp new file mode 100644 index 0000000..3e8421d --- /dev/null +++ b/src/main/webapp/jsp/error_verify.jsp @@ -0,0 +1,48 @@ +<%@ page isErrorPage="true" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.LocalRequestHelper" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.SignServlet" %> +<%@ page import="at.knowcenter.wag.egov.egiz.exceptions.*" %> +<%@ page import="java.io.*" %> + + + + + + PDF-Signaturen Resultat + + + +<% + 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()); +%> + + +

PDF-Signaturen

+

Ein Fehler ist aufgetreten

+
<%= error %>
+
Ursache: <%= cause %>
+
+ zurück +
+		<%
+		  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/src/main/webapp/jsp/null_request_page.jsp b/src/main/webapp/jsp/null_request_page.jsp new file mode 100644 index 0000000..89df7cf --- /dev/null +++ b/src/main/webapp/jsp/null_request_page.jsp @@ -0,0 +1,46 @@ +<%@ 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-Signaturen Lokale Verbindung + + + + +

PDF-Signaturen

+

Dokument Signatur erstellen

+
Die Verbindung zu Ihrer Bürgerkartenumgebung wird hergestellt...
+
+
+ + + +
+
+ zurück + + + + diff --git a/src/main/webapp/jsp/results.jsp b/src/main/webapp/jsp/results.jsp new file mode 100644 index 0000000..990e33e --- /dev/null +++ b/src/main/webapp/jsp/results.jsp @@ -0,0 +1,78 @@ +<%@ 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"); + String btlurl = (String)request.getAttribute("btlurl"); + boolean backbutton = true; + if (bb != null && bb.equals("false")) { + backbutton = false; + } +%> + + + + PDF-Signaturen + + +

PDF-Signaturen

+

Prüfergebnis

+ <% + Iterator resit = results.iterator(); + while (resit.hasNext()) { + SignatureResponse result = (SignatureResponse) resit.next(); + %> + +
+
+ Signatur-Check +
"><%= result.getSignatureCheckInfo() %>
+
+ +
+
+ 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() %>
+
+ +
+
+ Manifest-Check +
"><%= result.getSignatureManifestCheckInfo() %>
+
+ + <% + if (resit.hasNext()) { + %> +
+ <% + } + } + %> +
+ <% if (backbutton) { %> + zurück + <% } %> + <% if (btlurl != null) { %> + zurück zur Liste + <% } %> + + diff --git a/src/main/webapp/jsp/signpreview.jsp b/src/main/webapp/jsp/signpreview.jsp new file mode 100644 index 0000000..a1e6349 --- /dev/null +++ b/src/main/webapp/jsp/signpreview.jsp @@ -0,0 +1,68 @@ +<%@ 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.sig.SignatureData" %> +<%@ page import="at.gv.egiz.pdfas.web.SignSessionInformation" %> +<%@ page import="at.gv.egiz.pdfas.impl.input.TextDataSourceImpl"%> +<%@page import="org.apache.commons.lang.StringEscapeUtils"%> + +<% + 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()); + } +%> + + + + + + PDF-Signaturen Vorschau + + + +

PDF-Signaturen

+

Vorschau: Dokument Signieren

+ <% + if (si.mode.equals(FormFields.VALUE_MODE_TEXTUAL)) { + %> +
+
<%= document_text != null ? document_text : "" %>
+
+ + + +
+ +
+ <% + } else { + %> +
+
+ +
+
+
+ + + +
+
+ +
+ <% + } + %> +
+ zurück + + + diff --git a/src/main/webapp/jsp/signupload.jsp b/src/main/webapp/jsp/signupload.jsp new file mode 100644 index 0000000..ceabf9a --- /dev/null +++ b/src/main/webapp/jsp/signupload.jsp @@ -0,0 +1,68 @@ +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %> + + + + + PDF-Signaturen + <% session.removeAttribute(SessionAttributes.SIGNED_PDF_DOCUMENT); %> + + +

PDF-Signaturen

+

Dokument Signatur erstellen

+
Bitte wählen Sie die zu signierende PDF-Datei. Diese wird mit Ihrer Bürgerkarte signiert.
+
+ + + + + + + + + + + + + +
+ + +
+ +
+ + + + + +
+ + + +
Hinweis: Das Erscheinungsbild der Signaturmarke kann abhängig vom Signatur Typ, vom Signatur Modus, von der verwendeten Bürgerkarte, sowie von der verwendeten Bürgerkartenumgebung variieren.
+
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/src/main/webapp/jsp/verifylist.jsp b/src/main/webapp/jsp/verifylist.jsp new file mode 100644 index 0000000..22a2a4e --- /dev/null +++ b/src/main/webapp/jsp/verifylist.jsp @@ -0,0 +1,73 @@ +<%@ page contentType="text/html; charset=UTF-8" %> +<%@ page import="java.util.List" %> +<%@ page errorPage="error_verify.jsp" %> +<%@ 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.servlets.VerifyPreviewServlet" %> +<%@ page import="at.gv.egiz.pdfas.web.VerifySessionInformation" %> +<%@ page import="at.gv.egiz.pdfas.web.helper.SessionHelper"%> +<% + + VerifySessionInformation si = (VerifySessionInformation) SessionHelper.getSession(request); + + List signature_holders = si.signature_holders; + +%> + + + + + PDF-Signaturen + + +

PDF-Signaturen

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

Dokument Signaturen prüfen

+ <% } else { %> +

Dokument Signatur prüfen

+ <% + } + %> + <% + for (int i = 0; i < signature_holders.size(); i++) { + SignatureHolder holder = (SignatureHolder) signature_holders.get(i); + %> +
+
+ <%= VerifyPreviewServlet.renderRequiredKeysText(holder.getSignatureObject()) %> +
" + accept-charset="UTF-8" + method="get" + style="float:left;"> + + + +
+
" + accept-charset="UTF-8" + method="get" + style="float:left;"> + + + +
+
+ <% + } + %> +
+
+
" + accept-charset="UTF-8" + method="get"> + + + +
+
+ zurück + + diff --git a/src/main/webapp/jsp/verifypreview.jsp b/src/main/webapp/jsp/verifypreview.jsp new file mode 100644 index 0000000..975b5ce --- /dev/null +++ b/src/main/webapp/jsp/verifypreview.jsp @@ -0,0 +1,60 @@ +<%@ page contentType="text/html; charset=UTF-8" %> +<%@ page errorPage="error_verify.jsp" %> +<%@ page import="java.util.List" %> +<%@ page import="at.knowcenter.wag.egov.egiz.pdf.SignatureHolder" %> +<%@ page import="at.knowcenter.wag.egov.egiz.pdf.TextualSignatureHolder" %> +<%@ 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.servlets.VerifyPreviewServlet" %> +<%@ page import="at.gv.egiz.pdfas.web.VerifySessionInformation" %> +<%@ page import="at.gv.egiz.pdfas.web.helper.SessionHelper"%> +<% + String btlurl = (String)request.getAttribute("btlurl"); + + VerifySessionInformation si = (VerifySessionInformation) SessionHelper.getSession(request); + + 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-Signaturen + + + +

PDF-Signaturen

+

Vorschau: Dokument prüfen

+
" + name="submitform" + enctype="multipart/form-data" + accept-charset="UTF-8" + method="post"> + +
+
+ + <%= VerifyPreviewServlet.renderRequiredKeys(signature_holder.getSignatureObject(), "", false) %> +
+ + + +
+
+zurück +zurück zur Liste + + + diff --git a/src/main/webapp/jsp/verifyupload.jsp b/src/main/webapp/jsp/verifyupload.jsp new file mode 100644 index 0000000..fcbbc8d --- /dev/null +++ b/src/main/webapp/jsp/verifyupload.jsp @@ -0,0 +1,38 @@ +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %> +<%@ page contentType="text/html; charset=UTF-8" %> + + + + PDF-Signaturen + + +

PDF-Signaturen

+

Dokument Signatur prüfen

+
Hier bitte den vollständigen Dokumenttext samt Signaturblock eingeben.
+
+ + + + + + + + + + +
<%= FormFields.generateConnectorSelectBox() %>
textuell
+ +
+ + + +
+ + + + +
+
+zurück + + \ No newline at end of file -- cgit v1.2.3