I have written a custom Validator that expects an attribute to be set. I know I have to write a Handler (TagHandler or ValidatorHandler?) to set that attribute, but I am having trouble doing it.
<tag>
<tag-name>validateCustom</tag-name>
<validator>
<validator-id>package.CUSTOM_VALIDATOR</validator-id>
</validator>
</tag>
Where do i put the handler-class element? And how do I write the handler so that it will pass the attributes to my custom validator?
Thanks in advance!
Here is a validator with custom attribute skeleton:
Here is the tag handler:
And here is part of the taglib file: