diff options
author | rpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-09-29 11:14:18 +0000 |
---|---|---|
committer | rpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-09-29 11:14:18 +0000 |
commit | ac04b409db57ee9cd723d80e356b506d0347e494 (patch) | |
tree | 27eed6c1ec803814628fa5c718f4baf5db778f29 | |
parent | 6d0c8a39c9855eb14e856884b912965d5bde0e4e (diff) | |
download | pdf-as-3-ac04b409db57ee9cd723d80e356b506d0347e494.tar.gz pdf-as-3-ac04b409db57ee9cd723d80e356b506d0347e494.tar.bz2 pdf-as-3-ac04b409db57ee9cd723d80e356b506d0347e494.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@843 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-rw-r--r-- | pdf-as-web/src/main/webapp/jsp/download.jsp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pdf-as-web/src/main/webapp/jsp/download.jsp b/pdf-as-web/src/main/webapp/jsp/download.jsp index 1c73562..04cdf75 100644 --- a/pdf-as-web/src/main/webapp/jsp/download.jsp +++ b/pdf-as-web/src/main/webapp/jsp/download.jsp @@ -9,6 +9,9 @@ <%@page import="at.gv.egiz.pdfas.web.FormFields"%>
<%
+ String serverUrl=LocalRequestHelper.getLocalServerAddress(request,response);
+ String baseUrl=LocalRequestHelper.getLocalContextAddress(request,response);
+
String downloadURL = (String) session.getAttribute(SessionAttributes.DOWNLOAD_URL_FOR_SIGNED_PDF_DOCUMENT);
String connector = (String)session.getAttribute(SignServlet.SUBMITFORM_SIGNATURE_DEVICE_KEY);
@@ -63,10 +66,10 @@ <% } else { %>
<meta name="decorator" content="production_en" />
<% } %>
- <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%>/css/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" />
<% } %>
<meta http-equiv="pragma" content="no-cache,no-store,private,must-revalidate,max-stale=0,post-check=0,pre-check=0"/>
<meta http-equiv="expires" content="0"/>
@@ -142,17 +145,17 @@ </form></div>
<div class="pdfasverticalspace"></div>
<% if (!startedFromIFrame) { %>
- <div><a href="https://www.buergerkarte.at/test-pdf-as/"><fmt:message key="common.finish"/></a></div>
+ <div><a href="<%=baseUrl%>/"><fmt:message key="common.finish"/></a></div>
<% } %>
</div>
</div>
<div class="rechts" id="sign">
<div class="rechtsinhalt" id="signintern">
<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" disabled="disabled"/>
|