我在登录判断页面设置了session 值ActionContext.getContext().getSession().put("username",user.getUsername());
ActionContext.getContext().getSession().put("user",user);
ActionContext.getContext().getSession().put("realname",user.getRealname());
ServletActionContext.getRequest().getSession().setAttribute("kmid",user.getKmid());
然后在后台页面 通过<%=session.getAttribute("realname")%><%=session.getAttribute("username")%>只能获的username的值 也就是说 在登录界面登录框内的值 都能获取,其他的则不行。怎么解决?请高手指点