aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-09-29 11:14:38 +0000
committerrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-09-29 11:14:38 +0000
commit585e76985572675fbf8ae44f41d7b359b2c40fbd (patch)
treebb6649daf57d54613de1be9ae681ef2ec96cc316
parentb8840f2ce28b6054729e470faa622220b8df96b4 (diff)
downloadpdf-as-3-585e76985572675fbf8ae44f41d7b359b2c40fbd.tar.gz
pdf-as-3-585e76985572675fbf8ae44f41d7b359b2c40fbd.tar.bz2
pdf-as-3-585e76985572675fbf8ae44f41d7b359b2c40fbd.zip
Set src locations to dynamic (checking automatically if pdf-as or test-pdf-as is started)
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@845 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-rw-r--r--pdf-as-web/src/main/webapp/jsp/null_request_page.jsp13
1 files changed, 7 insertions, 6 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 faf2f26..3b57fd6 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
@@ -14,7 +14,8 @@
-
+ String serverUrl=LocalRequestHelper.getLocalServerAddress(request,response);
+ String baseUrl=LocalRequestHelper.getLocalContextAddress(request,response);
String local_request_url = (String)request.getAttribute("local_request_url");
String data_url = (String) request.getAttribute("data_url");
@@ -94,10 +95,10 @@
<title><fmt:message key="nullrequestpage.title"/></title>
<% if (!startedFromIFrame) { %>
- <link rel="stylesheet" type="text/css" href="https://www.buergerkarte.at/pdf-as/css/pdfas-styles.css" />
- <!-- <link rel="stylesheet" href="https://www.buergerkarte.at/style.css" type="text/css" /> -->
+ <link rel="stylesheet" type="text/css" href="<%=baseUrl%>/pdfas-styles.css" />
+ <!-- <link rel="stylesheet" href="<%=serverUrl%>/style.css" type="text/css" /> -->
<% } else { %>
- <link rel="stylesheet" type="text/css" href="https://www.buergerkarte.at/pdf-as/css/extern-styles.css" />
+ <link rel="stylesheet" type="text/css" href="<%=baseUrl%>/css/extern-styles.css" />
<% } %>
<script language="javascript" type="text/javascript">
<!--
@@ -303,10 +304,10 @@
<div class="rechts" id="localbkutext">
<div class="rechtsinhalt" id="localbkutextintern">
<div class="rechtslinks">
- <img src="https://www.buergerkarte.at/pdf-as/images/onlineBKU.png" alt="Chip-Karte" id="Karte"/>
+ <img src="<%=baseUrl%>/images/onlineBKU.png" alt="Chip-Karte" id="Karte"/>
</div>
<div class="rechtsrechts">
- <img src="https://www.buergerkarte.at/pdf-as/images/mobileBKU.png" alt="Handy" id="Handy"/>
+ <img src="<%=baseUrl%>/images/mobileBKU.png" alt="Handy" id="Handy"/>
</div>
<div class="rechtslinks">
<input type="submit" name="<%= FormFields.FIELD_CONNECTOR_SMARTCARD %>" value="<fmt:message key="signupload.signwithcard"/>" alt="Signatur mit Karte" onclick="return submitForm(this)" disabled="disabled"></input>