value="<%=request.getSession().getAttribute(username)> "当然 你必须在前面的页面 ,把username的值 传入session中 。HttpSession s= request.getSession;s.setAttribute("usename",username);