%@ 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")); } %>