Our tag handler code using the DynamicAttributes interface

Let’s examine how DynamicAttributes looks in action. First, our tag handler class must implement the DynamicAttributes interface from the JSP API. And that interface requires you to implement the setDynamicAttribute() method. This method needs to store the attribute name/value pairs; a hashmap is the perfect data structure to hold this information:

image with no caption
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset