Warning: Attempt to read property "date" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "msg" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "date" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "msg" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/websvn.26th.net/html/blame.php on line 247
WebSVN – general – Blame – /hostadmiral/trunk/src/ak/hostadmiral/core/action/LogoutAction.java/ – Rev 925

Subversion Repositories general

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
924 dev 1
package ak.hostadmiral.core.action;
919 dev 2
 
3
import javax.servlet.http.HttpServletRequest;
4
import javax.servlet.http.HttpServletResponse;
5
 
6
import org.apache.struts.action.Action;
7
import org.apache.struts.action.ActionMapping;
8
import org.apache.struts.action.ActionForm;
9
import org.apache.struts.action.DynaActionForm;
10
import org.apache.struts.action.ActionForward;
11
import org.apache.struts.action.ActionMessages;
12
import org.apache.struts.action.ActionErrors;
13
import org.apache.struts.action.ActionError;
14
 
15
public final class LogoutAction
16
	extends Action
17
{
18
	public ActionForward execute(ActionMapping mapping, ActionForm form,
19
			HttpServletRequest request, HttpServletResponse response)
20
		throws Exception
21
	{
22
		if(request.getSession() != null)
23
			request.getSession().invalidate();
24
 
25
		return mapping.findForward("default");
26
	}
27
}