From e66f7c7b73657a983ba9f0efed013a304ec94ed2 Mon Sep 17 00:00:00 2001 From: knowcenter Date: Fri, 1 Jun 2007 08:35:31 +0000 Subject: detached moa git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@119 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../wag/egov/egiz/web/servlets/VerifyPreviewServlet.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyPreviewServlet.java b/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyPreviewServlet.java index 98f582e..3a79939 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyPreviewServlet.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyPreviewServlet.java @@ -20,6 +20,7 @@ package at.knowcenter.wag.egov.egiz.web.servlets; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; +import java.net.URL; import java.util.ArrayList; import java.util.Iterator; import java.util.List; @@ -556,7 +557,11 @@ public class VerifyPreviewServlet extends HttpServlet return; } - List results = PdfAS.verifySignatureHolders(holders_to_verify, si.connector); + String host = request.getServerName(); + URL loc_ref_URL = new URL(request.getScheme(), host, request.getServerPort(), request.getContextPath() + "/RetrieveSignatureData"); + String loc_ref_url = response.encodeURL(loc_ref_URL.toString()); + + List results = PdfAS.verifySignatureHoldersWeb(holders_to_verify, si.connector, loc_ref_url); boolean backbutton = true; if (verify_which >= 0) { @@ -688,7 +693,11 @@ public class VerifyPreviewServlet extends HttpServlet return; } - List results = PdfAS.verifySignatureHolders(holders_to_verify, si.connector); + String host = request.getServerName(); + URL loc_ref_URL = new URL(request.getScheme(), host, request.getServerPort(), request.getContextPath() + "/RetrieveSignatureData"); + String loc_ref_url = response.encodeURL(loc_ref_URL.toString()); + + List results = PdfAS.verifySignatureHoldersWeb(holders_to_verify, si.connector, loc_ref_url); dispatchToResults(results, request, response, true); } catch (FileUploadException e) -- cgit v1.2.3