01: package org.bpmscript.web;
02:
03: import javax.servlet.http.HttpServletRequest;
04: import javax.servlet.http.HttpServletResponse;
05:
06: import org.springframework.web.servlet.ModelAndView;
07: import org.springframework.web.servlet.mvc.AbstractController;
08: import org.springframework.web.servlet.view.RedirectView;
09:
10: public class LogoutController extends AbstractController {
11:
12: @Override
13: protected ModelAndView handleRequestInternal(
14: HttpServletRequest request, HttpServletResponse response)
15: throws Exception {
16: request.getSession(true).invalidate();
17: return new ModelAndView(new RedirectView(request
18: .getContextPath()
19: + "/index.html"));
20: }
21:
22: }
|