From b8840f2ce28b6054729e470faa622220b8df96b4 Mon Sep 17 00:00:00 2001 From: rpiazzi Date: Thu, 29 Sep 2011 11:14:27 +0000 Subject: 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 --- pdf-as-web/src/main/webapp/jsp/error.jsp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'pdf-as-web') 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 @@ <% + 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) { %> - - + + <% } else { %> - + <% } %>