Hello, all
Could you tell me why Iterator i is null?
My struts version is 2.1.8
It's my code:
<s:generator val="%{'aaa,bbb,ccc,ddd,eee'}" count="4" separator=","
var="myAtt" />
<%
java.util.Iterator i
=(java.util.Iterator)pageContext.getAttribute("myAtt");
while(i.hasNext()) {
String s = (String) i.next(); %>
<%=s%> <br/>
<% }
%>
JSP tells me NullPointerException, It means no 'myAtt' in pageContext
but this example is from apache.org!
Karen
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]