本帖最后由 wss_scaler 于 2009-12-31 18:26:06 编辑

解决方案 »

  1.   

    是不是你的if把它给过滤掉了?还是你的login.jsp不在home里面啊?
      

  2.   

    if(!request_uri.substring(ctx_path.length()).equals( "/home/login.jsp") && !              request_uri.substring(ctx_path.length()).equals( "/home/img.jsp") 
    && hsr.getSession().getAttribute("user") == null)
    请看你的代码里面 if 里面的条件:&& hsr.getSession().getAttribute("user") == null第一次登录 session 里面是没有值的,这样的话就会hsres.sendRedirect(basePath+"index.jsp"); 第二次 你的session里面 有值了,所以能登陆进去。