diff options
Diffstat (limited to 'pdf-as-web/src/main/webapp')
-rw-r--r-- | pdf-as-web/src/main/webapp/jsp/error.jsp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pdf-as-web/src/main/webapp/jsp/error.jsp b/pdf-as-web/src/main/webapp/jsp/error.jsp index ce2e5a7..75830fa 100644 --- a/pdf-as-web/src/main/webapp/jsp/error.jsp +++ b/pdf-as-web/src/main/webapp/jsp/error.jsp @@ -29,6 +29,9 @@ <head>
<%
+ String serverUrl=LocalRequestHelper.getLocalServerAddress(request,response);
+ String baseUrl=LocalRequestHelper.getLocalContextAddress(request,response);
+
//Check if application is started within an iframe from an extern application
boolean startedFromIFrame = false;
String extern = (String)session.getAttribute("extern");
@@ -90,10 +93,10 @@ <%
//If the whole application started from an IFrame there could be an external stylesheet
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%>/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" />
<% } %>
<script language="javascript" type="text/javascript">
@@ -219,16 +222,16 @@ <%= cause%>
</strong></div>
<div class="pdfasverticalspace"></div>
- <a id="backlink" href="<%=LocalRequestHelper.getLocalContextAddress(request,response)%>/" target="_top"><fmt:message key="common.back"/></a>
+ <a id="backlink" href="<%=baseUrl%>/" target="_top"><fmt:message key="common.back"/></a>
</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"/>
@@ -263,7 +266,7 @@ </strong></div>
<div class="pdfasverticalspace"></div>
<% if (!isExternalInvocation && !paramInvok) { %>
- <a id="backlink" href="https://www.buergerkarte.at/pdf-as/" target="_top"><fmt:message key="common.back"/></a>
+ <a id="backlink" href="<%=baseUrl%>/" target="_top"><fmt:message key="common.back"/></a>
<% } // end if %>
<pre style="display:none">
<%
|