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/signpreview.jsp | 84 ++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 pdf-as-web/src/main/webapp/jsp/signpreview.jsp (limited to 'pdf-as-web/src/main/webapp/jsp/signpreview.jsp') diff --git a/pdf-as-web/src/main/webapp/jsp/signpreview.jsp b/pdf-as-web/src/main/webapp/jsp/signpreview.jsp new file mode 100644 index 0000000..d21a967 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/signpreview.jsp @@ -0,0 +1,84 @@ +<%@ page import="at.gv.egiz.pdfas.web.FormFields" %> +<%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %> +<%@ page import="at.gv.egiz.pdfas.web.session.SignSessionInformation" %> +<%@ page import="at.gv.egiz.pdfas.web.io.TextDataSource"%> +<%@ page import="org.apache.commons.lang.StringEscapeUtils"%> +<%@ page import="at.gv.egiz.pdfas.api.commons.Constants" %> + +<%@ include file="language.jsp" %> + +<% + 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()); + document_text = StringEscapeUtils.escapeHtml( + (String)request.getAttribute("document_text")); + } +%> + + + + + + <fmt:message key="signpreview.title"/> + + + +

+

+ <% + if (si.mode.equals(FormFields.VALUE_MODE_TEXTUAL)) { + %> +
+
<%= document_text != null ? document_text : "" %>
+ <% if (Constants.SIGNATURE_DEVICE_BKU.equals(si.connector)) { %> +
+ + + +
+ <% } else if (Constants.SIGNATURE_DEVICE_MOC.equals(si.connector)) { %> +
+ <fmt:message key="/> +
+ <% } // end if %> + " /> +
+ <% + } else { + %> +
+
+ " /> +
+
+ <% if (Constants.SIGNATURE_DEVICE_BKU.equals(si.connector)) { %> +
+ + + +
+ <% } else if (Constants.SIGNATURE_DEVICE_MOC.equals(si.connector)) { %> +
+ <fmt:message key="/> +
+ <% } // end if %> +
+ " /> +
+ <% + } + %> +
+ + + + -- cgit v1.2.3