IFrame框架 退出功能实现

时间:2014-10-27 14:09:47   收藏:0   阅读:142
    @RequestMapping(value = "/updateUser.jhtml", method = RequestMethod.POST)
    public void updateUserDO(HttpSession session, Model model, User user,
            HttpServletResponse response) throws IOException {
        // userService.updateUser(user);
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        session.removeAttribute("loginUser");
        response.getWriter().write(
                "<script>top.location.href=\"login.jhtml\"</script>");
    }
通过response挥写一段js揍实现了
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!