I am new to custom tags i have a requirement like i have a custom tag ex:
<html:sample attrb1="" attrb2="" attrb3=""/>
if attrb1 is given then,attrb2 is mandatoryly given else it is not mandatory can any one help me.
posted 7 years ago
Your custom tag can implement DynamicAttributes interface and then implement the setDynamicAttribute method and store all the attribute value in the Hashmap and then check is attr1 is given,if so then attr 2 sould be there else throw error.