<%@ page import="java.net.URLEncoder"%> <%@ page import="org.openecomp.portalsdk.core.util.SystemProperties"%> <% // Requests are handled by class ProcessCspController in the EP-SDK-Core library. // On login error, that controller returns a model that is a String->String map. // CSP property is defined in fusion.properties file final String cspLoginUrl = SystemProperties.getProperty(SystemProperties.CSP_LOGIN_URL); // Name is defined by app; do not throw if missing final String appDisplayName = SystemProperties.containsProperty(SystemProperties.APP_DISPLAY_NAME) ? SystemProperties.getProperty(SystemProperties.APP_DISPLAY_NAME) : SystemProperties.APP_DISPLAY_NAME; // Build login-link URL using parameters and/or system properties String returnUrl = request.getParameter("returnUrl"); if (returnUrl == null) { final String cspPage = "doLogin"; if (SystemProperties.containsProperty(SystemProperties.APP_BASE_URL)) { // Use property with the application URL; e.g., WebJunction String appUrl = SystemProperties.getProperty(SystemProperties.APP_BASE_URL); returnUrl = appUrl + (appUrl.endsWith("/") ? "" : "/") + cspPage; } else { // Use server info; incorrect for sites behind WebJunction. returnUrl = (request.isSecure() ? "https://" : "http://") + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/" + cspPage; } } else { // Request has a parameter with the return URL returnUrl = URLEncoder.encode(returnUrl, "UTF-8"); } %>

<%=appDisplayName%>

Click here to login



${model.error}