You can add custom tld override struts html taglib. Get the original struts-html.tld file, copy it as struts-html-autocomplete.tld into the tag folder. Add to form tag:
<tag> <name>form</name> ... <attribute> <name>autocomplete</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> .... </tag>
In web.xml, define the new tld:
<jsp-config> <taglib> <taglib-uri>html</taglib-uri> <taglib-location>/WEB-INF/tags/struts-html-autocomplete.tld</taglib-location> </taglib> </jsp-config>
source share