How would I implement a custom taglib using JSTL (Java Standard Tag Library) allowing the use of data-* HTML API? If such feature do not exist how would I simulate this as close as possible?
How would I implement a custom taglib using JSTL (Java Standard Tag Library) allowing
Share
If I understand correctly, you would like to create a JSP custom tag accepting dynamic attributes. See http://docs.oracle.com/javaee/6/api/javax/servlet/jsp/tagext/DynamicAttributes.html.
Your tag must be declared with
in the TLD, and it must implement the
DynamicAttributesinterface.