You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Harring Figueiredo <ha...@gmail.com> on 2007/04/10 17:34:08 UTC
S2 Formattion output with S:tags
Folks,
I read http://struts.apache.org/2.x/docs/text.html and could not make sense
on how to display currency format with s:tags
I have an iterator, during the iteration, I would like to set the currency
with the correct format.
If I use:
<s:iterator ...>
<s:property value="amount">
</s:iterator>
It displays correctly, except that the string is not currency formatted.
(Note: Amount is of type double: I know...don't ask :-)
I have tried, by the example on the site:
<s:iterator ...>
<s:text name="currency"> <s:param name="amount"
value="amount"></s:text>
</s:iterator>
and tried also some bizarre syntax to no avail.
Thank you for any input.
hff