Maps expose an Entry element containing properties key and value. <s:iterator value="map" var"row"> <s:property/> // that work well <s:textfield value="row.value.color"/> // this would call getColor() on the value object associated with key <s/iterator >
Peace, Scott On Wed, May 12, 2010 at 3:55 AM, yunaki <yun...@126.com> wrote: > > i have a Map in object stack, struts can use <s:property> tag to access > each > member, but how can I access map's value to set it to a tag's value. > > > <s:iterator value="map"> > <s:property/> // that work well > <s:textfield value="???"/> //set map's value to textfield > <s/iterator > > > Many thank > -- > View this message in context: > http://old.nabble.com/access-map%27s-value-in-object-stack-tp28533475p28533475.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >