只能说明session.getAttribute("isLog")等于NULL

解决方案 »

  1.   

    重定向传值的话需要在url中传吧,不能直接把表单的值传过去的,还有前面那个可以加个断点调一下,问题应该很容易找出来
      

  2.   

    <%=name%> hello world! 这里的name你在页面上是怎么定义的?<%=session.getAttribute("isLog")%> hello world! 这样试试
      

  3.   

     session.setAttribute("isLog",user.getName()); 
    <%=name%>  hello world! //你的用户名是放在了"isLog"内,name只是你的(servlet)的一个字符变量, mapping.findForward下一个页面,肯定不你认得你的name 变量的,
    你需要改成
    session.getAttribute("isLog",user.getName());
    页面加:
    <%=isLog%>  hello world!