Source Code‎ > ‎src‎ > ‎in.co.sunrays.proj1‎ > ‎action‎ > ‎

LogoutAction.java

package in.co.sunrays.proj1.action;

import org.apache.log4j.Logger;

/**
 * Logout functionality Action. Performs operation for Logout
 *
 * @author SUNRAYS Technologies
 * @version 1.0
 * @Copyright (c) SUNRAYS Technologies
 */
public class LogoutAction extends BaseAction {

    private static Logger log = Logger.getLogger(LogoutAction.class);

    /**
     * Performs display operations for LogoutAction
     *
     * @return type String
     * @return INPUT
     */
    @Override
    public String input() {
        log.debug("LogoutAction.execute() Start");
        log.debug("LogoutAction.execute() End");
        return INPUT;
    }

    /**
     * Performs submit operations for LogoutAction
     *
     * @return type String
     * @return SUCCESS
     */
    @Override
    public String execute() {
        log.debug("LogoutAction.execute() Start");
        session.clear();
        log.debug("LogoutAction.execute() End ");
        return OP_LOGOUT;
    }

}
Comments