/**
 * Created on 2006-10-28 下午09:28:11
 */
package cn.net.openid.jos.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.web.servlet.ModelAndView;

import cn.net.openid.jos.web.AbstractJosController;

/**
 * Clean up the session of current session.
 * 
 * @author Sutra Zhou
 * 
 */
public class LogoutController extends AbstractJosController {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.springframework.web.servlet.mvc.Controller#handleRequest(javax.servlet
	 * .http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		HttpSession session = request.getSession(false);
		if (session != null) {
			session.invalidate();
		}
		return new ModelAndView("logout");
	}

}

@@ -270,49 +270,51 @@
 ew;%0A
-%0A
 import 
-cn.net.openid.jos.web.AbstractJos
+org.springframework.web.servlet.mvc.
 Cont
@@ -438,27 +438,19 @@
 ler 
-extends AbstractJos
+implements 
 Cont

Revert Logout.java to r138.