传参应该可以吧,比如;
<input type="button" value="跳转" onclick="location=''xxx.action?list=${你的list}"/>
在Action定义一个public List list=new ArrayList();
就可以接收到了。[/quote]
public List list=new ArrayList();。。。然后呢[/quote]
没然后了,你在你的方法里打印一下list.size,应该能取到吧,前提是你前台的参数和你Action定义的集合名一致,而且你前台通过EL或者OGNL要保证你的List数据在页面上。
传参应该可以吧,比如;
<input type="button" value="跳转" onclick="location=''xxx.action?list=${你的list}"/>
在Action定义一个public List list=new ArrayList();
就可以接收到了。[/quote]
public List list=new ArrayList();。。。然后呢[/quote]
你在action中生成set方法,它就可以自动将页面中的list赋值给action中的list了
传参应该可以吧,比如;
<input type="button" value="跳转" onclick="location=''xxx.action?list=${你的list}"/>
在Action定义一个public List list=new ArrayList();
就可以接收到了。[/quote]
public List list=new ArrayList();。。。然后呢