struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nuwan Chandrasoma <mymail...@gmail.com>
Subject Re: Formating dates and numbers
Date Tue, 04 Sep 2007 12:07:51 GMT
Hi,

Do you have a .properties file as same name as your action class and in 
the same package?

Thanks,

Nuwan


Marcos Mendonça wrote:
> I tried that but all I get is a {0} where a formatted value should appear.
>
> Here's my jsp code:
> <s:text name="format.baseValue">
> <param name="value" value="baseValue"/>
> </s:text>
> 					
> <s:property value="baseValue"/>
>
> My ApplicationResources.properties file:
> format.baseValue = {0,number,R$##0.00}
>
>
> baseValue is of type BigDecimal. Is there anything wrong?
>
>
> Thanks in advance.
>
>
> On 9/4/07, Nuwan Chandrasoma <mymailnot@gmail.com> wrote:
>   
>> http://www.roseindia.net/struts/struts2/struts-2-format.shtml
>>
>> Marcos Mendonça wrote:
>>     
>>> Hello
>>>
>>> How do I format dates and numbers with Struts2?
>>>
>>> I tried following this tutorial found on documentation but it didn't
>>> work. Could anyone point me to a working example or tell me how to do
>>> it. I did not want to have to create methods to format dates and
>>> numbers in my action.
>>>
>>> http://struts.apache.org/2.x/docs/how-to-format-dates-and-numbers.html
>>>
>>> Thanks...
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>   


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


Mime
View raw message