String email = request.getParameter("email");
UserNew user = getLoginUser(request);
UserNew temp = userNewManager.getByEmail(email);
if (user ==null && temp==null) {
response.sendRedirect("/messageCounts.html?method=logIn");
return null;
}else{
if(temp!=null){
request.getSession().setAttribute("userSession", temp);
}
}
这是我Action的代码,造成死循环的原因是当用户没有登录,并且传进来的email也是一个不存在的,或者是没有注册的。那么他会进入if条件里面,然后我跟踪调试,,,,他执行完if里面的语句后,居然又跳转到这个Action的这个方法。我想问的是,我没有在任何地方重复调用过这个Action的这个方法。为什么他会出现死循环?