I am following the TwoField Pluggable Struts Validator example mentioned in dev guide of Struts.
I found that even when my fields are different, there are no errors shown on my JSP. So, I debugged and found that in the method of the validator class I wrote, the code abruptly stops at the line
"errors.add(field.getKey(), new ActionMessage("aerrors.twofields", value, value2));" and the page forwards to the success page.
Here's the method code
Am I doing anything wrong? The only difference between the example available on Struts code and this is that I replaced delegated errors.add(..) method with another one.
Thanks for your time,