这个有很多解决办法,比如你可以把数据存在session里面比如A action中你用:
ActionContext.getContext().getSession().put(key, value)这个方法把你想传的值保存在session中然后 B Action直接
ActionContext.getContext().getSession().get(key)就可以拿到了~~~
手动传递啊,第一个action中get到值在set到Attribute里面,下一个页面中在获得到
我觉得最方便的方法是把这个值存到session中,哪里都能取到
ActionContext.getContext().getSession().put(key, value)