From 518295b9b95a552795bda62a442d59b897b91737 Mon Sep 17 00:00:00 2001 From: rpiazzi Date: Fri, 23 Sep 2011 15:09:53 +0000 Subject: Changes to take into account the possibility for calling the whole application within an IFrame from an external application (see also other jsp's). git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@821 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- pdf-as-web/src/main/webapp/jsp/please_wait.jsp | 70 +++++++++++++++++++++++--- 1 file changed, 62 insertions(+), 8 deletions(-) (limited to 'pdf-as-web/src/main/webapp/jsp') 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 62c0d28..03e85a2 100644 --- a/pdf-as-web/src/main/webapp/jsp/please_wait.jsp +++ b/pdf-as-web/src/main/webapp/jsp/please_wait.jsp @@ -1,16 +1,70 @@ <%@ page contentType="text/html; charset=UTF-8" language="java" errorPage=""%> +<%@ page import="at.gv.egiz.pdfas.web.helper.LocalRequestHelper" %> +<%@page import="at.gv.egiz.pdfas.web.servlets.SignServlet"%> +<%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %> <%@ include file="language.jsp" %> + + + + <% + + //Check if application is started within an iframe from an extern application + String extern = (String)request.getParameter("extern"); + boolean startedFromIFrame = false; + + if (extern !=null) { + if (extern.equals("yes")) { + startedFromIFrame = true; + } + } + + //That the appication is entered into the IFrame now is sure + session.setAttribute(SignServlet.ERROR_WITHIN_IFRAME, "yes"); + + String language = (String)session.getAttribute(SessionAttributes.LANGUAGE); + if (language!=null) { + if (language.equals("de")) {%> + + <% } else { %> + + <% } + } else { %> + + <% } + + //Depending on the fact if application is called within an IFrame or normally + //the styles would be different + if (!startedFromIFrame) { %> + + + <% } else { %> + + <% } %> + - <fmt:message key="pleasewait.title"/> + + <fmt:message key="pleasewait.title"/> + + + + +<% if (!startedFromIFrame) { %> + +
+ +
+ +<% } else { %> + +
+ +
+ +<% } %> + - - - - - -
- + -- cgit v1.2.3