把你的用户名放到session中
session.setAttribute("username", username);在别的jsp
String username = (String)session.setAttribute("username");

解决方案 »

  1.   

    可以用session
    String strName = "小强";
    sesssion.setAttribute("Name",strName);使用的时候
    strName = (String)session.getAttribute("Name");
      

  2.   

    "Check.jsp": Error #: 300 : variable sesssion not found in class jsp_servlet.__check at line 45
    为什么说session.setAttribute("username", username);这语句有错误啊?还漏了什么吗?
      

  3.   

    哦,我知道了
    原来session多打了个s