<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %> <%@ taglib uri="http://fenix-ashes.ist.utl.pt/fenix-renderers" prefix="fr" %> <%@page import="pt.ist.fenixWebFramework.FenixWebFramework"%> <%@page import="pt.ist.fenixWebFramework.Config.CasConfig"%> <% final String contextPath = request.getContextPath(); final String serverName = request.getServerName(); final CasConfig casConfig = FenixWebFramework.getConfig().getCasConfig(serverName); // If no config is found don't allow login. if (casConfig == null) { %> <% } else { final boolean isCasEnabled = casConfig.isCasEnabled(); %>
<% if (isCasEnabled) {%> <% final String portString = (request.getServerPort() == 80 || request.getServerPort() == 443) ? "" : ":" + request.getServerPort(); %> <%= FenixWebFramework.getConfig().getCasConfig(serverName).getCasLoginUrl() + "https" + "://" + request.getServerName() + contextPath %>/ <% } else { %> <% } %> <% } %> : |