<%@ page import="java.util.Hashtable" %> <%@ page import="java.util.Locale" %> <%@ page import="java.util.StringTokenizer" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Enumeration" %> <%@ page import="teleroute.selfcare.models.fwk.HelpdeskInfo" %> <%@ page import="teleroute.selfcare.models.fwk.HelpdeskManager" %> <%@ page import="teleroute.selfcare.models.fwk.Maintenance" %> <%@ page import="teleroute.selfcare.models.fwk.cms.CmsCountriesList" %> <%@ page import="teleroute.selfcare.models.fwk.cms.SubscriptionParameterImpl" %> <%@ page import="teleroute.selfcare.models.fwk.cms.SubscriptionParameterPartialImpl" %> <%@ page import="teleroute.selfcare.models.fwk.selfcare.SelfcareCountry" %> <%@ page import="teleroute.selfcare.models.manager.selfcare.SelfcareManager" %> <%@ page import="teleroute.selfcare.servlet.SessionContainer" %> <%@ page import="teleroute.selfcare.utils.ParameterFile" %> <%@ page import="teleroute.server.cms.exceptions.CmsServiceException" %> <%@ page import="teleroute.server.cms.manager.selfCare.SelfCareCmsServiceManager" %> <%@ page import="teleroute.server.cms.io.selfCare.SelfCareServiceRequest" %> <%@ page import="teleroute.server.cms.interfaces.selfCare.iSubscriptionParameter" %> <%@ page import="teleroute.server.cms.interfaces.selfCare.iSubscriptionParameterPartial" %> <%@ page import="teleroute.server.cms.interfaces.cmsCampaign.iDemoCampaignCountryStatus" %> <%@ page import="teleroute.selfcare.models.fwk.SiteStat" %> <%@ page import="teleroute.selfcare.models.fwk.tgo.*" %> <%@ page contentType="text/html; charset=UTF-8" %> <% try{ response.setHeader("P3P","CP=CAO PSA OUR"); SessionContainer sc = (SessionContainer)session.getAttribute(SessionContainer.KEY_CONTAINER); if (sc == null || (!(sc != null && sc.isTranslator()))){ sc = new SessionContainer(); sc.setSessionId(session.getId()); sc.setUser(""); } sc.setAccessKind("SSPF"); if (Maintenance.isMaintenanceActivated()){ sc.getSpy().debug("LIMITED_MODE","index.jsp", "Mode limit"); %> <% return; } String country=(request.getParameter("country")!=null)?request.getParameter("country"):""; country=country.toUpperCase(); sc.setCountry(country); String language = ""; if("GB".equals(country)) language="EN"; if("E".equals(country)) language="ES"; if("P".equals(country)) language="PT"; if("I".equals(country)) language="IT"; if("F".equals(country)) language="FR"; if("B".equals(country)) language="NL"; if("NL".equals(country)) language="NL"; if("D".equals(country)) language="DE"; if("A".equals(country)) language="DE"; if("CH".equals(country)) language="DE"; if("PL".equals(country)) language="PL"; if("CZ".equals(country)) language="CS"; if("RO".equals(country)) language="RO"; if("SK".equals(country)) language="SK"; if("TR".equals(country)) language="TR"; if("BG".equals(country)) language="BG"; if("".equals(language)) { pageContext.setAttribute("WRONG_COUNTRY" ,"1" ,PageContext.REQUEST_SCOPE); language="EN"; } else { pageContext.setAttribute("WRONG_COUNTRY" ,"0" ,PageContext.REQUEST_SCOPE); language=language.toUpperCase(); } sc.setLanguage(language); sc.setLocale(new Locale(language,Locale.JAPAN.getCountry())); session.setAttribute(SessionContainer.KEY_CONTAINER,sc); } catch(Exception e){ e.printStackTrace(); } %> <%@ include file="/EN/common/registrationFinished-view.jsp" %>