diff options
author | pdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2010-12-06 16:34:52 +0000 |
---|---|---|
committer | pdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2010-12-06 16:34:52 +0000 |
commit | 29ad090c29567ff1a4d3a2ec9b8ad0b5d80ee24d (patch) | |
tree | 5b75b34c822a79f70b83c266465dda70b9baeaf2 /pdf-as-web/src/main/webapp/jsp/verifypreview.jsp | |
parent | 04375406fc1634adbf9b37143a2125327da6a11e (diff) | |
download | pdf-as-3-29ad090c29567ff1a4d3a2ec9b8ad0b5d80ee24d.tar.gz pdf-as-3-29ad090c29567ff1a4d3a2ec9b8ad0b5d80ee24d.tar.bz2 pdf-as-3-29ad090c29567ff1a4d3a2ec9b8ad0b5d80ee24d.zip |
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@671 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'pdf-as-web/src/main/webapp/jsp/verifypreview.jsp')
-rw-r--r-- | pdf-as-web/src/main/webapp/jsp/verifypreview.jsp | 60 |
1 files changed, 60 insertions, 0 deletions
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);
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <title><fmt:message key="common.title"/></title>
+ <script type="text/javascript">
+ <!--
+ function initSigValues() {
+ <%= VerifyPreviewServlet.renderRequiredKeysJavaScript(getServletContext(), signatureInfo, "") %>
+ }
+ -->
+ </script>
+</head>
+<body">
+<h1><fmt:message key="common.title"/></h1>
+<h2><fmt:message key="verifypreview.heading2"/></h2>
+<form action="<%= response.encodeURL(request.getContextPath() + "/VerifyPreview") %>"
+ name="submitform"
+ enctype="multipart/form-data"
+ accept-charset="UTF-8"
+ method="post">
+ <input type="hidden" name="<%= FormFields.FIELD_VERIFY_WHICH %>" value="<%= verify_which %>" />
+ <div class="pdfasnote"><label><fmt:message key="verifypreview.reconstruction"/>:</label></div>
+ <div class="pdfasverticalspace"></div>
+ <textarea class="pdfaspreviewfield" rows="14" name="<%= FormFields.FIELD_RAW_DOCUMENT_TEXT %>"><%= signedText %></textarea>
+ <%= VerifyPreviewServlet.renderRequiredKeys(getServletContext(), signatureInfo, "", false) %>
+ <br />
+ <input type="hidden" name="verify" value="false" />
+ <input type="submit" value="<fmt:message key="verifypreview.applyvalues"/>" />
+ <input type="submit" value="<fmt:message key="verifypreview.applyvaluesandverify"/>" onclick="document.submitform.verify.value='true'" />
+</form>
+<div class="pdfasverticalspace"></div>
+<a href="<%= request.getContextPath() %>/jsp/verifyupload.jsp"><fmt:message key="common.back"/></a>
+<a href="<%=btlurl%>"><fmt:message key="common.backtolist"/></a>
+ <script language="javascript" type="text/javascript">
+ <!--
+ initSigValues();
+ -->
+ </script>
+</body>
+</html>
|