%-- Created by IntelliJ IDEA. User: ncsa Date: Aug 5, 2010 Time: 9:41:22 AM To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page errorPage="setupErrorPage.jsp" %> <%@ page import="org.cilogon.portal.util.PortalParameters" %> <%@ page import="org.cilogon.util.SSLConfiguration" %> <%@ page import="static org.cilogon.portal.config.PortalVocabulary.*" %> <%@ page import="static org.cilogon.portal.servlets.ConfigConstants.*" %> <% if (root.hasA(HAS_PORTAL_PARAMETERS)) { ppm = root.getPortalParametersModel(); } else { ppm = portalConfiguration.createPortalParameters(); root.setPortalParametersModel(ppm); ppm.setCallback("http://" + request.getServerName() + request.getContextPath() + "/ready"); ppm.setFailure("http://" + request.getServerName() + request.getContextPath() + "/failure"); ppm.setSuccess("http://" + request.getServerName() + request.getContextPath() + "/success"); } PortalParameters pp = ppm.toPortalParameters(); // fiddle with the context paths to make this look about right. Not perfect, but should save the // user some typing. // stick it in a bean for future use if (root.hasA(HAS_SSL_CONFIGURATION)) { sslcm = root.getSSLConfiguration(); } else { sslcm = portalConfiguration.createSSLConfiguration(); root.setSSLConfiguration(sslcm); } SSLConfiguration sslCfg = sslcm.getConfiguration(); // regardless of what we do, we should save our state before continuing. saveConfig(application, portalConfiguration); %>