struts tag Iterator设置值
设置顺序的循环值:
<s:iteratorvar="level"begin="1"end="5"status="state"><option value="${level}">${level}</option></s:iterator>
<s:iteratorvar="level"value="{0,1,2,3,4}"status="state"><option value="${level}">${level}</option></s:iterator>
<s:iteratorvar="level"value="{'A','B','C'}"status="state"><option>${level}</option></s:iterator>
<s:iteratorvar="level"value="#{"1":"a","2":"b"}"status="state"><option><s:property value='key'/>s:property vlaue='value'/></option></s:iterator>
<s:generator val="%{'aaa,bbb,ccc,ddd,eee'}"> <s:iterator> <s:property /><br/> </s:iterator></s:generator>