posted 18 years ago
hi all,
can anyboduy tell me how can we differentiate between required, minlenth or requiredif kind of validation errors(which are declared in the validator-rules.xml with depends attribute)....ie if i have a validate method in my form such that......
public ActionErrors validate(ActionMapping mp,HttpServletRequest req)
{
ActionErrors er=super.validate(mp,req);
--------
-------
}
now is it possible to retrive the error messages from attribute "er" and find out which type of validation error is it.... whether required,minlength etc