Home > Articles > Programming > JavaScript

  • Print
  • + Share This

Taglib Element in Web App Descriptor

The container uses the URI in the taglib directive to locate an XML file containing the tag library descriptor. Although a relative URI can be used to locate that file, the preferred method is the use of a taglib element in the Web application descriptor file (WEB-INF\web.xml). The next listing shows the taglib element for the bonForum Web app. It maps the URI from the bonForum taglib directive shown previously to the bonForum tag library descriptor file. Note that the filename in the URI and for the file need not be the same. Here is the bonForum taglib element:

<taglib>
  <taglib-uri>
    http://www.bonForum.org/taglib/bonForum-taglib-0.5
  </taglib-uri>
  <taglib-location>
    /WEB-INF/jsp/bonForum-taglib-0.5.tld
  </taglib-location>
</taglib>
  • + Share This
  • 🔖 Save To Your Account

Related Resources

There are currently no related titles. Please check back later.