[EMAIL PROTECTED] a e'crit :
Have you tried the JSTL tag?
-Original Message-
From: chamal desilva [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 07, 2006 3:35 AM
To: Struts Users Mailing List
Subject: RE: Formatting numbers in text field
Thanks Richard
But if do it
Have you tried the JSTL tag?
> -Original Message-
> From: chamal desilva [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 07, 2006 3:35 AM
> To: Struts Users Mailing List
> Subject: RE: Formatting numbers in text field
>
>
> Thanks Richard
>
> But
Thanks Richard
But if do it uing getter methods I will have to write
a lot of getters since I have many properties.
Is n't there an another way. Can't we control the
formatting through a common place in Struts.
Best Regards,
Chamal.
--- "Gundersen, Richard"
<[EMAIL PROTECTED]> wrote:
> If you
If you are using an ActionForm, you could modify your getter to do the
formatting. Or, have an additional getter method e.g.
Double amount;
Double getAmount() {
// bog standard method
}
String getFormattedAmount() {
// do some formatting
}
Then, in the form, do something like
4 matches
Mail list logo