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>");
}
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>");
}
评论(0)