struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Menard <m...@mjm.net>
Subject Re: [S2] Formatting inside Iterator tag
Date Mon, 23 Apr 2007 21:44:23 GMT
On 4/23/07 5:37 PM, "chengas123" <benjamin.j.mccann@gmail.com> wrote:

> 
> I am using the iterator tag as follows:
>           <s:iterator value="orders" status="status" id="order">
>             <tr>
>               <td><s:property value="orderid" /></td>
>               <td><s:property value="orderDate" /></td>
>               <td><s:property value="total" /></td>
>             </tr>
>           </s:iterator>
> 
> This will give me an order date such as "20040513" and a total such as
> "68.7700" when what I really want is 05/13/2004 and $68.77.  I have not been
> able to figure out how to do this.  Any recommendations?

<s:text name="format.date"><s:param name="value" value="orderDate"
/></s:text>

That will do the date, there are some other formats listed on the Wiki I
think. *shrug*

Mark

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


Mime
View raw message