From 3d982813b34f6f230baf4a467cdc37ec92a77595 Mon Sep 17 00:00:00 2001 From: netconomy Date: Fri, 17 Aug 2007 06:10:56 +0000 Subject: Performance git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@167 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- webapp/jsp/signpreview.jsp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'webapp/jsp/signpreview.jsp') 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(); } %> -- cgit v1.2.3