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
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
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
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!
4 matches
Mail list logo