aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/webapp/jsp
diff options
context:
space:
mode:
authorrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-09-29 11:14:47 +0000
committerrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-09-29 11:14:47 +0000
commitbbdadf60ff2d11a4e74ebe3a389ed51944cc1df0 (patch)
tree977621446edae5f6a79de17d916523bf8e577970 /pdf-as-web/src/main/webapp/jsp
parent585e76985572675fbf8ae44f41d7b359b2c40fbd (diff)
downloadpdf-as-3-bbdadf60ff2d11a4e74ebe3a389ed51944cc1df0.tar.gz
pdf-as-3-bbdadf60ff2d11a4e74ebe3a389ed51944cc1df0.tar.bz2
pdf-as-3-bbdadf60ff2d11a4e74ebe3a389ed51944cc1df0.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@846 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'pdf-as-web/src/main/webapp/jsp')
-rw-r--r--pdf-as-web/src/main/webapp/jsp/please_wait.jsp8
1 files changed, 5 insertions, 3 deletions
diff --git a/pdf-as-web/src/main/webapp/jsp/please_wait.jsp b/pdf-as-web/src/main/webapp/jsp/please_wait.jsp
index a9351ac..5e18bb3 100644
--- a/pdf-as-web/src/main/webapp/jsp/please_wait.jsp
+++ b/pdf-as-web/src/main/webapp/jsp/please_wait.jsp
@@ -10,6 +10,8 @@
<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
String extern = (String)request.getParameter("extern");
@@ -38,10 +40,10 @@
//Depending on the fact if application is called within an IFrame or normally
//the styles would be different
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" />
<% } %>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />