Differences between revisions 5 and 6
Revision 5 as of 2006-07-17 22:10:47
Size: 883
Comment: Removed obsolete notes
Revision 6 as of 2009-09-20 23:12:06
Size: 883
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

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).

StrutsDocConfiguring (last edited 2009-09-20 23:12:06 by localhost)