diff options
author | rpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-09-29 11:14:27 +0000 |
---|---|---|
committer | rpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-09-29 11:14:27 +0000 |
commit | b8840f2ce28b6054729e470faa622220b8df96b4 (patch) | |
tree | 26f9df342f540e4c68c004293e6a84152d535f02 /pdf-as-web/src/main/webapp/jsp/error.jsp | |
parent | ac04b409db57ee9cd723d80e356b506d0347e494 (diff) | |
download | pdf-as-3-b8840f2ce28b6054729e470faa622220b8df96b4.tar.gz pdf-as-3-b8840f2ce28b6054729e470faa622220b8df96b4.tar.bz2 pdf-as-3-b8840f2ce28b6054729e470faa622220b8df96b4.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@844 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'pdf-as-web/src/main/webapp/jsp/error.jsp')
-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">
<%
|