我在LoginAction中设置了ActionContext.getContext().getSession().put("user", getName());但是在GetAction中ActionContext.getContext().getSession().get("user");取数据的时候返回的是Null
///////////////////////////////////////
之后在LoginAction里改成了ActionContext act = ActionContext.getContext(); act.getSession().put("user", getName());在GetAction中改成ActionContext act = ActionContext.getContext();String user = (String)act.getSession().get("user");就没问题了,求指点
///////////////////////////////////////
之后在LoginAction里改成了ActionContext act = ActionContext.getContext(); act.getSession().put("user", getName());在GetAction中改成ActionContext act = ActionContext.getContext();String user = (String)act.getSession().get("user");就没问题了,求指点