struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <salgado...@04web.com>
Subject RE: Mixed Struts Validator Framework and ValidationForm
Date Mon, 03 May 2004 14:29:43 GMT
  Yes.

  Extend the DynaValidator

  override the validate method

  validate(...) {

    ActionErrors errors = super.validate(...);

    // do your stuff
    if (...) {
        errors.add(...);
    }


    return errors;
  }

Pedro Salgado


On 04/05/03 9:40, "Eric Noel" <ericnoel@mylife.ph> wrote:

> Is it possible to use both Strut's Validator Framework for some fields
> and validate other fields using my own validation via ActionForm
> class. If yes, can someone site an example.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org



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


Mime
View raw message