Hi, Thanks for your answer. I'm very surprised that this feature was not implemented in Struts 1.
Regards, Zero ---------- Initial Header ----------- From : [EMAIL PROTECTED] To : Struts Users Mailing List <user@struts.apache.org> Cc : Date : Wed, 17 Jan 2007 16:26:15 +0100 Subject : Re: Form population and locale Hi, > I use Struts 1.2.9 and I would like to know if there is any > way to link the user locale (available with > RequestUtils.getUserLocale(HttRequest)) with the form > population process. > > In fact, I have many forms which have date field (with the > java.util.Date type). I would format these fields according > to the user locale (ie. "yyyy/MM/dd" for english users and > "dd/MM/yyyy" for french users). Also, I would like that the > automatic form population do the same thing. I had the same problem but found that the support of Struts (at least version 1.x) is quite poor for this issue. I have a workaround by populating the form beans using BeanUtils and registering the LocaleConverters before. So, I'd suggest to take a look at the commons-beanutils package... Cheers, Thorsten --------------------- ALICE SECURITE ENFANTS --------------------- Protégez vos enfants des dangers d'Internet en installant Sécurité Enfants, le contrôle parental d'Alice. http://www.aliceadsl.fr/securitepc/default_copa.asp --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]