This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Only info I get about
Dynamic attribute in Custom Tag are following no example can any one give me please?
Simple tags and classic tags can handle dynamic attributes. Two things are necessary to allow dynamic attributes in custom tags :
Declare dynamic attributes in DD;
Implement DynamicAttributes interface.
To declare the use of dynamic attributes, one element must be added in the tag definition :
Custom tag class
The corresponding custom tag class must implement the DynamicAttributes class, which defines one method :
public void setDynamicAttribute(String uri, String localName, Object value) throws JspException Most common implementation is to store the attributes in a <String, Object> map with the localName as key, and the value object as value.