struts2的跳转问题
比如添加用户,添加成功了,一般都是自动跳转到列表页面
<package name="borrowReturn" namespace="/" extends="struts-default">
<action name="br_*" method="{1}" class="cn.hzx.depot.action.BorrowReturnAction" >
<result name="success">borrowReturn/list.jsp</result>
<result name="addBR">borrowReturn/list.jsp</result>
</action>
</package>
这是xml里的,添加成功后能正常跳转,但是列表里的内容是空的
而在 地址栏输入 br_findRecord.action 转到列表 可以正常显示数据的
我的数据是放到 ActionContext.getContext().put("list", list); 里的
是不是数据至放到和xml配置里相对应的页面?
如果这样的话,在添加成功后应该怎么写?才能在列表里同时显示添加上的数据?