You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kalra, Ashwani" <ak...@capgemini.com> on 2005/11/30 11:08:08 UTC

Struts validation.xml size

Hi,
I have at least one  validation that is different in each country. Does
it mean that  I have to define a formset for each language and Country
combination.
If I have to do this way its size and manageability is my concern.  Is
there a better way?

__________________
Thanks
Ashwani Kalra
Ext:3407




This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.

Re: Struts validation.xml size

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
Upgrade to Validator 1.2.0 there are some features that make this easier.

In versions of validator before 1.2.0, you would have to define all forms in
each locale. Now locales inherit from their "parent" locale - what I mean by
that is for example the "en_US" locale formset would inherit from a "en"
locale formset, which in turn will inherit from the default formset.

You can also use the new "extends" attribute to explicitly inherit forms,
which can cut down on the duplication.

See here for more details, see
http://wiki.apache.org/jakarta-commons/ValidatorVersion120
http://jakarta.apache.org/commons/validator/

Niall

----- Original Message ----- 
From: "Kalra, Ashwani" <ak...@capgemini.com>
Sent: Wednesday, November 30, 2005 10:08 AM

Hi,
I have at least one  validation that is different in each country. Does
it mean that  I have to define a formset for each language and Country
combination.
If I have to do this way its size and manageability is my concern.  Is
there a better way?



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org