Thanks for your valuable inputs folks!!!
Brent you pointed it right, i receive errors object as null in this method. I think ideally it should be the one which is present in request.
Apart from this custom validation, all other standard validations are working. The version of struts being used is 1.2.9
I have made some changes, which are marked in bold in the code below:
My Validator Class i.e. SalesRepExistanceValidator
==================================================
Output on the console as per the SOPs is
=========================================
folder matched is >> 101 (
Alan Rego)
errors object is >> null field key is >> empNumber
As we can see, the error object received in validateSalesRepExistance method is null.
Kindly help, if you have any clues on how to get this working. I am trying this from yesterday, but not able to get it.
Thanks in Advance...