Re: Formating dates and numbers

2007-09-05 Thread Laurie Harper
All of those should have worked. Are you sure your properties files are getting deployed? They should exist under WEB-INF/classes/... next to the .class files, not just in your source tree. Try using to confirm that the property is actually visible; once that works, the formulation should w

Re: Formating dates and numbers

2007-09-04 Thread Marcos Mendonça
Well, yes. I tried putting format.baseValue in a package.properties file in the same folder as my action class, a MyAction.properties in the same folder, and a put the format.baseValue in the ApplicationResources.properties as well, and none of these worked. I get a {0} where the formatted value

Re: Formating dates and numbers

2007-09-04 Thread Nuwan Chandrasoma
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: My ApplicationRes

Re: Formating dates and numbers

2007-09-04 Thread Marcos Mendonça
I tried that but all I get is a {0} where a formatted value should appear. Here's my jsp code: My ApplicationResources.properties file: format.baseValue = {0,number,R$##0.00} baseValue is of type BigDecimal. Is there anything wrong? Thanks in advan

Re: Formating dates and numbers

2007-09-04 Thread Nuwan Chandrasoma
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 wa

Formating dates and numbers

2007-09-03 Thread Marcos Mendonça
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.ap