AW: AW: bean:message format ssn

2004-03-11 Thread Andreas Solarik
Ah, I guess I misunderstood your previous post. Maybe this will help you along? snip Use the formatKey attribute if you want to pull it from message resources. Have a look at java.text.DecimalFormat for an explanation of formatting patterns for decimal numbers. /snip The above code came from

Re: AW: AW: bean:message format ssn

2004-03-11 Thread Kumar M
Yup, formatKey is pretty handy. We use it to format dates. But bean:write tag seems to do this only when converting from non-String data type to String datatype. What I have is a String '123456789'. One solution is to probably convert this to Integer and that will force it to use a number

RE: AW: AW: bean:message format ssn

2004-03-11 Thread Slattery, Tim - BLS
Yup, formatKey is pretty handy. We use it to format dates. But bean:write tag seems to do this only when converting from non-String data type to String datatype. What I have is a String '123456789'. One solution is to probably convert this to Integer and that will force it to use a

Re: AW: AW: bean:message format ssn

2004-03-11 Thread Kumar M
Tim, That is what I have right now...and is ofcourse very simple to do it in FormBeans :). But I have to do this at a number of places/form beans, so I was wondering if it could be done using bean:message as I mentioned in the subject of this e-mail (not necessarily bean:write). Thanks!