On 7/1/10 4:08 PM, Ken wrote:
Adding 'var="header"' to the <s:iterator> tag simply pushed a named
object onto the stack.

Am I missing something?

Yes.

Any use of an s:iterator always pushes the current item onto the top of the stack during each iteration of the body. You can refer to that as "top" if you so choose.

Adding a var attribute also stores the value in the map that sits alongside the valuestack, and the prefix # tells ognl to look something up in that map.

-Dale

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

Reply via email to