commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien GALLET <sebast...@gallet.info>
Subject Re: [commons-validator] Validator outside of Struts
Date Thu, 17 Feb 2005 15:05:37 GMT

David Graham a écrit :

>The GenericValidator.isBlankOrNull(Object, Field) method does not exist.
>
>http://jakarta.apache.org/commons/validator/apidocs/org/apache/commons/validator/GenericValidator.html#isBlankOrNull(java.lang.String)
>
>You need to provide a wrapper method for GenericValidator.isBlankOrNull
>and configure the wrapper in validator.xml.  Yes this is annoying and we
>have a proposal to make this easier in future versions.  Struts provides
>the FieldChecks.validateRequired() method as a wrapper with this
>signature:
>
>public static boolean validateRequired(Object bean,
>    ValidatorAction va, Field field,
>    ActionMessages errors, HttpServletRequest request)
>  
>
I've make a wrapper (based on Struts FieldChecks) and now everything 
works fine.

>BTW, your logging setup makes it very difficult to understand stack traces
>with the timestamp cluttering every line.
>  
>
I agree with this ... I will change it soon

>David
>
>  
>
Thanks David and Eric.

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


Mime
View raw message