I'm trying to use Apache Struts with BootStrap css which uses the custom css attibute data-toggle="dropdown"
for its menus.
I tried with
<html:link action="/Home" styleClass="dropdown-toggle" data-toggle="dropdown">
<bean:message key="menu.person" />
</html:link>
However data-toggle="dropdown"
is not allowed, in NetBeans it gives error:
Attribute data-toggle invalid for tag link according to TLD
How do I put a custom property like data-toggle
inside an <html:link>
?
So far I can see only id and class properties are allowed.
What version? IIRC later versions of S1 allow arbitrary attributes, but I'd have to double-check.
If you cannot upgrade, extract the TLD and modify it to allow arbitrary attributes under JSP 2.0: