You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Bowman <bo...@gmail.com> on 2007/06/08 21:01:23 UTC

Alternate way to get to value in an iteration

Hello!

Normally with struts2, I would iterate through a list like:
<s:iterator value="newsStories">
  <h1><s:property value="headline" /></h1>
  <div class="summary">
    <s:property value="summary" />
  </div>
</s:iterator>

But now I need to be able to use the headline and summary values in
another tag. The following doesn't work, but I need to get to
something like it:
<s:iterator value="newsStories">
  <a:ajax name="news.NewsListItem" args="{headline: ${headline},
summary: ${summary}}" />
</s:iterator>

The problem is that I need to pass the headline and summary values
through to another tag (specifically, as part of a jMaki argument
list).

Any ideas on how to do this?

Thanks!
-Michael
-- 
http://mbowman.net

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