Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.

1 /*2 * Copyright (C) 2004 Erik Swenson - eswenson@opensourcesoft.net3 * 4 * This program is free software; you can redistribute it and/or modify it under5 * the terms of the GNU General Public License as published by the Free Software6 * Foundation; either version 2 of the License, or (at your option) any later7 * version.8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS11 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more12 * details.13 * 14 * You should have received a copy of the GNU General Public License along with15 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple16 * Place - Suite 330, Boston, MA 02111-1307, USA.17 * 18 */19 20 package org.efs.openreports.actions;21 22 import com.opensymphony.xwork.ActionContext;23 import com.opensymphony.xwork.ActionSupport;24 25 publicclass LogoutAction extends ActionSupport26 {27 publicString execute()28 {29 ActionContext.getContext().getSession().clear();30 ActionContext.getContext().getValueStack().setValue("loggedIn", newBoolean(false));31 32 return SUCCESS;33 }34 35 }