Rick Reumann wrote:


if ( errors != null && !errors.isEmpty ) <-- this part can probably be shortened, I was too lazy to figure out what really gets returned if validation passes.. a null or empty ActionErrors?


here is part of the code of RequestProcessor, so in both cases the form is considered valid
       ActionMessages errors = form.validate(mapping, request);
--->>>        if ((errors == null) || errors.isEmpty()) {
           if (log.isTraceEnabled()) {
               log.trace("  No errors detected, accepting input");
           }
           return (true);
       }

Regards
Borislav

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to