struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <d...@newfield.org>
Subject Re: OGNL to get list of keys
Date Thu, 01 Jul 2010 20:12:43 GMT
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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message