On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote:

> Date: Thu, 18 Jul 2002 16:52:28 +0200
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> 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
>

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to