In your validation.xml you can define different formsets for different
localle by specifiying language/country/variant attributes
<formset language="" country="" variant="">
Means you have to duplicate your validation rules for each language in
Struts 1.1 - however the latest nightly build of validator includes an
"inheritance" feature which I believe (don't know much more about it) will
make this easier:
http://www.mail-archive.com/dev%40struts.apache.org/msg00259.html
Niall
----- Original Message -----
From: "Stjepan Brbot" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 13, 2004 11:06 PM
Subject: Date validator and I18N
In my web application I deal with three languages (Croatian, German and
English). Application does have forms allowing user to input a date value.
When english locale is active user must have the ability to insert date in
english date format (mm/dd/yyyy), also croatian and german users must have
the ability to insert dates in their own date format (dd.mm.yyyy). How to
define a validation for such a situation? In mask for date validation (in
validation.xml) I can define only one date format pattern!
Stjepan Brbot
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]