for adding different
'groups' (one or more from what I've read) of validations
to any set.
Regards,
David
-Original Message-
From: Leo Asanov [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 04, 2005 10:56 PM
To: Struts Users Mailing List
Subject: Re: Re-use field validations?
Hi!
I was looking for this kind of functionality some time
ago and didn't find any standard way of doing reusable
validators.
What I did was more like a hack, but it worked:
1. For server side validation.
Overwrite validate() method of FormBean class with
something like this:
public ActionErro
I should also add that you cannot use external XML entities in validator XML
files for any released version of Struts. However, Struts 1.3, as of
tonight, will include code, dependent on Validator 1.2, which will allow
their use.
Don
On 8/29/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
>
> Fy
Fyi, Struts 1.3 is moving to a Validator 1.2 dependency. This version
includes support for the form "extends" attribute which provides just
what you were asking for.
Hubert
On 8/26/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Quinn Stone wrote:
> > Is there any way to define the validation for
Quinn Stone wrote:
Is there any way to define the validation for a common form field once in
validation.xml and re-use the validation in other blocks?
This would allow validation.xml to be updated in one place rather than many
places, if validation requirements change for a field that is used o
Is there any way to define the validation for a common form field once in
validation.xml and re-use the validation in other blocks?
This would allow validation.xml to be updated in one place rather than many
places, if validation requirements change for a field that is used on many
forms. It woul
6 matches
Mail list logo