diff options
author | rpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2012-02-14 10:23:15 +0000 |
---|---|---|
committer | rpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2012-02-14 10:23:15 +0000 |
commit | 99039fc36b6ead3c11e2984e8d8e86de01a81993 (patch) | |
tree | 0601be285585c56c802d977b3b5d20800d5c69ad /pdf-as-web/src | |
parent | 9c717316d28f90b3117df09b467f561fb84df62c (diff) | |
download | pdf-as-3-99039fc36b6ead3c11e2984e8d8e86de01a81993.tar.gz pdf-as-3-99039fc36b6ead3c11e2984e8d8e86de01a81993.tar.bz2 pdf-as-3-99039fc36b6ead3c11e2984e8d8e86de01a81993.zip |
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
Diffstat (limited to 'pdf-as-web/src')
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java | 9 |
1 files changed, 7 insertions, 2 deletions
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;
|