struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: Form bean properties data types and conversions
Date Thu, 18 Jul 2002 16:45:28 GMT

On Thu, 18 Jul 2002 wrote:

> Date: Thu, 18 Jul 2002 16:52:28 +0200
> From:
> Reply-To: Struts Users Mailing List <>
> To: Struts Users Mailing List <>
> Subject: Form bean properties data types and conversions
> I have seen, that in Struts 1.0 there is some support for automatic
> conversion of request parameters to form bean properties, which seems to be
> extending in the 1.1beta (i did not use it, but i navigated through the
> sources). There seem to be converters for date and time data types in the
> beta. So far, so fine.
> But i could not get any hint on the localisation. As Struts knows in his
> request the locale of the user and offers it to the Action programmer, will
> this locale be used to make any automatic conversions, too? For Struts 1.0
> this seems not to be the case, as far as i could see in the sources in half
> an hour. And the calls to the new DynaBean classes from the jakarta.commons
> project seem to lack any locale support, too. I can not see much use in an
> automatic conversion function of Dates (but also numbers), whithout any
> respect to the users locale, so i wondered if i am missing something.

The APIs for Converters is not currently Locale-sensitive, although it
could probably be made possible through an extended interface
(LocaleConverter or something) that passed an extra Locale argument along.

> Could someone shed som light on this?
> Regards,
> Jens Stutte


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message