struts中为集合传值的集中方式

1、 为自定义的java对象传值:格式:User user; user.name
2、 为list传值:

${ list.index + 1 }

${ stuR.student.studentNumber }

${ stuR.student.name }

3、 为set传值:
html页面中的代码:

指定录入用户:



指定修改用户:



Action中的代码
@KeyProperty(value=”scorerId”)
@Element(value=com.shiyuesoft.sc.bean.Scorer.class)
@CreateIfNull(value=true)
private Set scorers = new HashSet(0);