Re: Formatting numbers in text field

2006-12-11 Thread Nabil ALI-MOUSSA
[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

RE: Formatting numbers in text field

2006-12-07 Thread George.Dinwiddie
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

RE: Formatting numbers in text field

2006-12-07 Thread chamal desilva
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

RE: Formatting numbers in text field

2006-12-05 Thread Gundersen, Richard
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