Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Form population and locale

Zero

2007-01-17

Replies:

Hi everybody,

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.

Thanks a lot !
Regards,
Zero


--------------------- 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: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.