我在loginAction中将用户的信息保存在了session中
ActionContext.getContext().getSession().put("list1", readermsg);
然后我在另个一action中读取
ReaderMsg rm = (ReaderMsg)ActionContext.getContext().getSession().get("list1");
时,
出现异常
java.lang.ClassCastException: java.util.ArrayList cannot be cast to com.ly.bean.ReaderMsg
这是怎么回事?求解