struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Schröder" <simon.v...@gmx.de>
Subject Re: [S2] Iterate through two lists
Date Fri, 22 Aug 2008 08:04:20 GMT
> If all you're trying to do is set message properties why are you bothering
> with the push?
> 
> > <s:iterator value="fruits1" status="rowstatus">
> >   <s:text name="names">
> >     <s:param value="someObject.fruits2[#rowstatus.index].name"/>
> >   </s:text>
> > </s:iterator>

Looks good (if fruit1 is accessable bei a getter in the action class). Does it work for you?

> >   <s:text name="names">
> >     <s:push value="someObject.fruits2[#rowstatus.index]">
> >       <s:param name="value" value="name"/>
> >     </s:push>
> >   </s:text>
 
> I'm not sure why the push tag is causing the issue, though.

Maybe the param tag tries to bind with the push tag and not with the text tag???

/Stephan
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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


Mime
View raw message