JSP Tag Library Syntax

Tag libraries are used within the context of a WebLogic application. To use tags within a tag library, the tag library's uri (file location) must first be registered within the application's web.xml (application deployment descriptor) file. This file is located in the application's ..\WEB-INF directory. The tag library's XML syntax is follows:

<taglib>
  <taglib-uri>name.tld</taglib-uri>
  <taglib-location>
    /WEB-INF/lib/name-tags.jar
  </taglib-location>
</taglib>

To use the library within your JSP page after the tag library's uri is set, you must reference the tag library using the taglib directive with the syntax that follows:

WebLogic JSP shorthand

<%@ taglib uri="name-tags.tld" prefix="yourPrefix" %>

XML equivalent

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.