Hello, all

Sorry for sending my email twice, I found something wired.

Document from http://struts.apache.org/2.x/docs/generator.html
tell us:
var  -  The name to store the resultant iterator into page context, if such
name is supplied

but:
<s:generator val="%{'aaa,bbb,ccc,ddd,eee'}" count="4" separator=","
var="myAtt" />
<%
 java.util.Iterator i = (java.util.Iterator) request.getAttribute("myAtt ");
 while(i != null && i.hasNext()) {
     String s = (String) i.next(); %>
     <%=s%> <br/>
<%    }
%>

is right, and if I use pageContext.getAttribute("myAtt"); I got null.
Is there something wrong with my code?



Karen


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to