aboutsummaryrefslogtreecommitdiff
path: root/webapp/jsp/signpreview.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/jsp/signpreview.jsp')
-rw-r--r--webapp/jsp/signpreview.jsp10
1 files changed, 6 insertions, 4 deletions
diff --git a/webapp/jsp/signpreview.jsp b/webapp/jsp/signpreview.jsp
index 4b9189a..897aec2 100644
--- a/webapp/jsp/signpreview.jsp
+++ b/webapp/jsp/signpreview.jsp
@@ -1,9 +1,10 @@
<%@ 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.SessionInformation" %>
<%@ 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"%>
<%
- SessionInformation si = (SessionInformation) session.getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION);
+ SignSessionInformation si = (SignSessionInformation) session.getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION);
String submit_url = (String)request.getAttribute("submit_url");
@@ -12,8 +13,9 @@
String document_text = null;
if (si.mode.equals(FormFields.VALUE_MODE_TEXTUAL))
{
- SignatureData data = si.iui.signature_data;
- document_text = new String(data.getData(), data.getCharacterEncoding());
+ SignatureData data = si.si.getSignatureData();
+ TextDataSourceImpl tds = (TextDataSourceImpl)data.getDataSource();
+ document_text = tds.getText();
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">