<logic:notEmpty name="displayForm" property="personlist">
<logic:iterate id="person" name="displayForm" property="personlist">
<bean:write name="person" property="personName"/>
<bean:write name="person" property="personAge"/>
<bean:write name="person" property="personSex"/>
</logic:iterate>
</logic:notEmpty>
注:
1、logic:notEmpty是判断列表是否有值
2、name="displayForm" 存有N多数组的actionForm
3、property="personlist" actionForm的对象,一般为数组,向量类的
4、id="person" 存基本信息的actionForm对象
5、name="displayForm" property="personlist" 同2,3
另附表单自动提交
<script language='javascript'>
document.all.displayForm.submit();
</script>
注:displayForm是在struts-config.xml中定义的