%@ 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.sig.SignatureData" %> <%@ page import="at.gv.egiz.pdfas.web.SignSessionInformation" %> <%@ page import="at.gv.egiz.pdfas.impl.input.TextDataSourceImpl"%> <%@ 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()); } %>