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/jsp/results.jsp | 84 ++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 pdf-as-web/src/main/webapp/jsp/results.jsp (limited to 'pdf-as-web/src/main/webapp/jsp/results.jsp') 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) { %> + + <% } %> + + -- cgit v1.2.3