You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Dhandapani, Rajeswaran" <rd...@inautix.co.in> on 2015/05/15 10:13:09 UTC

Format Conversion

Hi All,

I have the below code to display the cost in currency format and the iterator iterates over hash map. All the values are displayed inside property tag except the formatted "value.cost". Could you please help me to fix the display.


<s:iterator value="baseMap">
<tr align="center" height="25px;">
<td><s:property value="key" /></td>
<td><s:property value="getText('format.money',{value.cost})" /></td>
<td><s:property value="value.status" /></td>
</tr>
</s:iterator>


Thank you.
Rajeswaran D

******************************************************
This message and any files or attachments sent with this message contain confidential information and is intended only for the individual named.  If you are not the named addressee, you should not disseminate, distribute, copy or use any part of this email.  If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return Email.

Email transmission cannot be guaranteed to be secure or error-free as information can be intercepted, corrupted, lost, destroyed, late, incomplete or may contain viruses.  The sender, therefore, does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission.
******************************************************

Re: Format Conversion

Posted by Lukasz Lenart <lu...@apache.org>.
2015-05-15 10:13 GMT+02:00 Dhandapani, Rajeswaran <rd...@inautix.co.in>:
> Hi All,
>
> I have the below code to display the cost in currency format and the iterator iterates over hash map. All the values are displayed inside property tag except the formatted "value.cost". Could you please help me to fix the display.
>
>
> <s:iterator value="baseMap">
> <tr align="center" height="25px;">
> <td><s:property value="key" /></td>
> <td><s:property value="getText('format.money',{value.cost})" /></td>
> <td><s:property value="value.status" /></td>
> </tr>
> </s:iterator>

<td><s:property value="%{getText('format.money',{value.cost})}" /></td>


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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