struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yan Hu <yachill...@yahoo.com>
Subject Struts validation questions
Date Sat, 28 May 2005 16:16:59 GMT
Hi there:
Thanks for clicking in first.  I use ValidatorForm.
Class Myform extends Vaidtorform{
       Various fields go here

}
  
But I would like to add some my own validation to it. Could I safely use Validate() 
Such as
Class Myform Extends Vaidtorform{
       Various fields go here

    ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request){

       Add some my own validation here

   return errors;
   }
}

If it is ok to do so, whose validation goes first, mine or the default validtor's ? Thanks.




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


Mime
View raw message