struts2 generator问题
<s:generator val="%{'aaa,bbb,ccc,ddd,eee'}" count="4" separator="," var="myAtt">
<s:iterator>
<s:property/>
</s:iterator>
<s:debug></s:debug>
</s:generator>
<%
Iterator i = (Iterator) pageContext.getAttribute("myAtt");
while(i.hasNext()) {
String s = (String) i.next(); %>
<%=s%> <br/>
<% }
%>
<s:property>可以拿出数据,Iterator却拿不出来,请大侠赐教,蒙了
------解决方案--------------------
要在后台设myAtt才行吧?呵呵