Name

Taglib Directive

Synopsis

Declares a tag library, containing custom actions, that is used in the page.

Syntax

<%@ taglib prefix="prefix" uri="taglibURI" %>

Attributes

Attribute name

Default

Description

prefix

No default

The prefix to use in the action element names for all actions in the library.

uri

No default

Either a symbolic name for the tag library that is defined in the TLD for the library or in the web.xml file for the application, or a page-relative or context-relative URI path for the library’s TLD file or JAR file.

Examples

<%@ taglib prefix="ora" uri="orataglib" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

Get JavaServer Pages, Second Edition 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.