%@ page
language="java" contentType="text/html; charset=UTF-8"
import="fr.findworks.search.*"
import="fr.findworks.frombf.*"
import="fr.findworks.core.*"
import="fr.findworks.data.*"
import="fr.findworks.util.*"
import="fr.findworks.ui.*"
import="fr.findworks.filters.WireFrameFilter"
import="fr.findworks.flight.ui.*"
import="fr.findworks.flight.*"
import="fr.findworks.i18n.*"
import="java.util.*"
import="java.text.*"
import="java.lang.*"
import="org.json.simple.*"
import="org.apache.commons.lang.*"
%><%
response.setContentType("text/html; charset=UTF-8");
%>
<%@ include file="/sessionmanager.jsp" %>
<%
String domainEntryPage = null;
WireFrameConfig wireConfig = (WireFrameConfig) session.getAttribute(WireFrameFilter.CONFIGURATION);
if (wireConfig != null) {
domainEntryPage = wireConfig.getValue("domainEntryPage");
if ("".equals(domainEntryPage)) {
domainEntryPage = null;
}
}
if (domainEntryPage != null) {
boolean isEntryForwarded = true;
String domainEntryRedirect = wireConfig.getValue("domainEntryRedirect");
if (domainEntryRedirect != null) {
if ("true".equals(domainEntryRedirect)) {
isEntryForwarded = false;
} else if ("1".equals(domainEntryRedirect)) {
isEntryForwarded = false;
} else if ("redirect".equals(domainEntryRedirect)) {
isEntryForwarded = false;
}
}
if (isEntryForwarded) {
%><%
} else {
response.sendRedirect(domainEntryPage);
}
} else { // the old method
response.sendRedirect("/v6/homepage/index.jsp");
}
%>