From 99039fc36b6ead3c11e2984e8d8e86de01a81993 Mon Sep 17 00:00:00 2001 From: rpiazzi Date: Tue, 14 Feb 2012 10:23:15 +0000 Subject: Added workaround: For external application write filename directly into session and not only into the SignSessionInformation git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@918 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pdf-as-web/src') diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java index 4500b8e..d07b72e 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java @@ -196,6 +196,10 @@ public class SignServlet extends HttpServlet log.debug("Parameter note: "+note); //end added + session = request.getSession(true); + + session.setAttribute(SignServlet.SUBMITFORM_FILENAME_KEY, filename); + // added by tknall if (sig_pos_y != null && sig_pos_p != null && sig_pos_x != null) { if (sig_pos_w != null) { @@ -337,10 +341,11 @@ public class SignServlet extends HttpServlet } try { - HttpSession session = request.getSession(true); - // not needed, that is done in sign() + // not needed, that is done in sign() // ud.pdfDataSource = PdfAS.applyStrictMode(ud.pdfDataSource); + session = request.getSession(true); + SignSessionInformation si = new SignSessionInformation(); // SessionTable.generateSessionInformationObject(); si.connector = ud.sig_app; -- cgit v1.2.3