aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src/main/webapp')
-rw-r--r--pdf-as-web/src/main/webapp/jsp/signupload.jsp26
1 files changed, 14 insertions, 12 deletions
diff --git a/pdf-as-web/src/main/webapp/jsp/signupload.jsp b/pdf-as-web/src/main/webapp/jsp/signupload.jsp
index 57d66e3..f3f8a48 100644
--- a/pdf-as-web/src/main/webapp/jsp/signupload.jsp
+++ b/pdf-as-web/src/main/webapp/jsp/signupload.jsp
@@ -24,6 +24,9 @@
session.removeAttribute(SessionAttributes.DOWNLOAD_URL_FOR_SIGNED_PDF_DOCUMENT);
session.removeAttribute(SessionAttributes.SIGNED_PDF_DOCUMENT);
+ String serverUrl=LocalRequestHelper.getLocalServerAddress(request,response);
+ String baseUrl=LocalRequestHelper.getLocalContextAddress(request,response);
+
//Check if application is started within an iframe from an extern application
String extern = (String)request.getParameter("extern");
boolean startedFromIFrame = false;
@@ -54,7 +57,6 @@
else {
session.setAttribute(SessionAttributes.LANGUAGE, "de");
}
-
}
@@ -142,15 +144,15 @@
if (german) {
%>
<meta name="decorator" content="production_de" />
- <link rel="stylesheet" type="text/css" href="https://www.buergerkarte.at/pdf-as/css/pdfas-styles.css" />
+ <link rel="stylesheet" type="text/css" href="<%=baseUrl%>/css/pdfas-styles.css" />
<% } 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" type="text/css" href="<%=baseUrl%>/css/pdfas-styles.css" />
<% }
} else {
session.setAttribute("extern", "yes");
%>
- <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" />
<% } %>
@@ -391,7 +393,7 @@
fakeFileUpload.appendChild(input);
var img = document.createElement('img');
- img.src = 'https://www.buergerkarte.at/pdf-as/images/durchsuchen.png';
+ img.src = '<%=baseUrl%>/images/durchsuchen.png';
img.id = 'buttonimage';
var fakeButton = document.createElement('input');
@@ -442,12 +444,12 @@
//Show the fake image/button as it would be focused (mouse over)
function focusButton() {
- document.getElementById('buttonimage').src = 'https://www.buergerkarte.at/pdf-as/images/durchsuchen_aktiv.png';
+ document.getElementById('buttonimage').src = '<%=baseUrl%>/images/durchsuchen_aktiv.png';
}
//Show the fake image/button as it would be unfocused (mouse out)
function unfocusButton() {
- document.getElementById('buttonimage').src = 'https://www.buergerkarte.at/pdf-as/images/durchsuchen.png';
+ document.getElementById('buttonimage').src = '<%=baseUrl%>/images/durchsuchen.png';
}
//Change some size settings when IE7 is found
@@ -768,10 +770,10 @@
<div class="rechts" id="sign" style="display:block">
<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" onclick="return submitForm(this)"></input>
@@ -805,7 +807,7 @@
<div style="font-size:75%"><fmt:message key="nullrequestpage.localbku.advice"/></div>
<div class="pdfassmallverticalspace"></div>
</div>
- <div id="backlink" align="left"><a href="https://www.buergerkarte.at/pdf-as/" target="_parent"><fmt:message key="common.cancel"/></a></div>
+ <div id="backlink" align="left"><a href="<%=baseUrl%>/" target="_parent"><fmt:message key="common.cancel"/></a></div>
</div>
</div>
<!-- Fake signature buttons for the case an error occured and this error has to be displayed
@@ -814,10 +816,10 @@
<div class="rechts" id="downloadsignbuttons" style="display:none">
<div class="rechtsinhalt" id="downloadsignbuttonsintern">
<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>