日期:2014-05-18 浏览次数:20811 次
public class TerminalInfoAddAction extends ActionSupport {
private TerminalInfoAddService terminalInfoAddservice;
private List<TerminalEntity> terminalInfoAddList = new ArrayList<TerminalEntity>();
private List<TerminalEntity> validList ;
。。。。。。。。
get和set方法
}
想将第一个action的validList 作为参数传给第二个action中的requestTerminalInfoAddResult 变量
public class TerminalInfoAddResultAction extends ActionSupport {
private static final long serialVersionUID = 1L;
private TerminalInfoAddResultService terminalInfoAddResultService;
private TerminalEntity requestTerminalInfoAddResult;
public String execute() {
requestTerminalInfoAddResult 。。
}
。。。。。。getset方法
}
<action name="InsertAction" class="terminal.edit.TerminalInfoAddAction" method="insertDBdata">
<!-- <result name = "insert" type="chain">TerminalInfoAddResultAction</result> -->
<result name = "insert" type="chain">
<param name="actionName">TerminalInfoAddResultAction</param>
<param name="validList">${validList}</param>
<param name="requestTerminalInfoList">${requestTerminalInfoList}</param>
</result>
<result name = "input" >/WEB-INF/jsp/terminal/edit/terminalInfoAdd.jsp</result>
</action>