This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • StrutsDocConfiguring
Skip to end of metadata
Go to start of metadata

For SRV 2.2 and prior containers TLD files should be referenced in web.xml file using "taglib" element, for example:

  <taglib>
    <taglib-uri>/tags/struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/tags/struts-html</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/tags/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
  </taglib>

For SRV 2.3+ containers the above definition is redundant, the container will search inside JAR files in the war\lib directory and will load TLD information from a suitable one. For this to work the JAR files must contain TLD files in META-INF\tld folder (struts-taglib-x.jar file does contain difintions for Struts tags).

  • No labels