aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src
diff options
context:
space:
mode:
authorrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-10-13 16:36:10 +0000
committerrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-10-13 16:36:10 +0000
commit658c5b04a5a6214c98a9b45b772b94572e11f707 (patch)
treeb52a45f7431cc3427b224155fe03f70683f8df57 /pdf-as-web/src
parenta0d022854a53cf7b615f2e1fbe6ae3f71b2fcb6d (diff)
downloadpdf-as-3-658c5b04a5a6214c98a9b45b772b94572e11f707.tar.gz
pdf-as-3-658c5b04a5a6214c98a9b45b772b94572e11f707.tar.bz2
pdf-as-3-658c5b04a5a6214c98a9b45b772b94572e11f707.zip
Added support of mobile signature (test mode)
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@861 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'pdf-as-web/src')
-rw-r--r--pdf-as-web/src/main/webapp/jsp/null_request_page.jsp29
1 files changed, 29 insertions, 0 deletions
diff --git a/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp b/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp
index fd5ca76..661230a 100644
--- a/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp
+++ b/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp
@@ -25,6 +25,7 @@
boolean isServerBKU = false;
boolean isLocalBKU = false;
boolean isMobileBKU = false;
+ boolean isMobileTest = false;
SignSessionInformation ssi = null;
@@ -34,6 +35,7 @@
isServerBKU = Constants.SIGNATURE_DEVICE_MOC.equals(ssi.connector);
isLocalBKU = Constants.SIGNATURE_DEVICE_BKU.equals(ssi.connector);
isMobileBKU = Constants.SIGNATURE_DEVICE_MOBILE.equals(ssi.connector);
+ isMobileTest = Constants.SIGNATURE_DEVICE_MOBILETEST.equals(ssi.connector);
} else {
VerifySessionInformation vsi = (VerifySessionInformation) si;
isExternalInvocation = vsi.exappinf != null;
@@ -262,6 +264,33 @@
<% } %>
</div>
</body>
+ <% // if Mobiletest %>
+ <% } if (isMobileTest) { %>
+ <body style="background:#e6f2fa">
+ <div>
+ <form action="<%= local_request_url %>" name="submitform" accept-charset="UTF-8" method="post" target="_self">
+ <input type="hidden" name="XMLRequest" value="<?xml version='1.0' encoding='UTF-8'?><NullOperationRequest xmlns='http://www.buergerkarte.at/namespaces/securitylayer/1.2#'/>" />
+ <input type="hidden" name="DataURL" value="<%= data_url %>" />
+ <input type="hidden" name="redirecttarget" value="_top"/>
+ <input type="hidden" name="appletWidth" value="190"/>
+ <input type="hidden" name="appletHeight" value="170"/>
+ <% if (language != null) { %>
+ <input type="hidden" name="locale" value="<%= language %>"/>
+ <% } // end if %>
+ </form>
+ <% if (!isExternalInvocation) { %>
+ <script language="javascript" type="text/javascript">
+ disableFormSettings();
+ document.submitform.submit();
+ </script>
+ <% } else { %>
+ <script language="javascript" type="text/javascript">
+ deactivateSprachlink();
+ document.submitform.submit();
+ </script>
+ <% } %>
+ </div>
+ </body>
<% }
//If local BKU is choosed the whole page has to be shown
if (isLocalBKU) {