/*
 * @author <a href="mailto:novotny@aei.mpg.de">Jason Novotny</a>
 * @version $Id: LogoutPortlet.java 4496 2006-02-08 20:27:04Z wehrens $
 */
package org.gridlab.gridsphere.portlets.core.logout;

import org.gridlab.gridsphere.portlet.*;
import org.gridlab.gridsphere.portlet.impl.AbstractPortlet;

import java.io.IOException;
import java.util.Locale;


public class LogoutPortlet extends AbstractPortlet {

    public void doView(PortletRequest request, PortletResponse response) throws PortletException, IOException {
        Client client = request.getClient();
        String title;
        Locale locale = request.getLocale();
        title = getPortletSettings().getTitle(locale, client);
        request.setAttribute("GRIDSPHERE_LOGOUT_LABEL", title);
        request.setAttribute("username", request.getUser().getFullName());
        getPortletConfig().getContext().include("/jsp/login/logout.jsp", request, response);
    }

}

@@ -885,18 +885,19 @@
 /jsp/log
-in
+out
 /logout.

change logout.jsp location