On Fri, 06 Aug 2010 20:49:03 -0400, Martin Gainty <mgai...@hotmail.com>
wrote:
<s:url>
<!-- assume your Action contains a collection -->
<!-- public java.util.ArrayList<CartItem> availableItems; -->
<s:iterator value="availableItems">
<!-- each CartItem has a name, Price and OriginalValue attributes -->
<td><s:property value="name" /></td>
<td><s:property value="Price" /></td>
<td><s:property value="OriginalValue" /></td>
</tr>
</s:iterator>
</s:url>
if the action collection accessor formats the array to deliver each
attribute of CartItem as expected by param within url
then grab the array from the action..
<s:url>
<s:param name="pn" value="%{'action.availableItems'}" />
</s:url>
Martin Gainty
Mr Gainty wins the prize.
For reference, this works:
<s:url id="xurl" value="a.b" includeParams="none" escapeAmp="false">
<s:param name="pn" value="{'firstval','secondval','thirdval'}" />
</s:url>
URL 1: <s:property value="xurl"/>
Result is:
URL 1: a.b?pn=firstval&pn=secondval&pn=thirdval
which is what I was looking for.
Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org