Appendix B. JSTL Actions and API Reference

This appendix contains reference material for all JSTL actions, support and utility classes, and configuration settings.

The actions are described using the same conventions as for the JSP standard actions in Appendix A, with the difference that dynamic values are indicated by “Yes” in the “Dynamic value accepted” column in the Attribute tables. For the Expression Language (EL) libraries, this means the attribute value can be set by an EL expression, while for the request-time attribute value (RT) libraries, it means that the value can be set by a request-time attribute expression, as described in Chapter 15.

JSTL Library URIs and Default Prefixes

As described in Chapter 15, the JSTL libraries come in two flavors: one set that accepts EL expressions as action element attributes (the EL libraries) and one set that accepts request-time attribute values (the RT libraries). Except for the type of expressions they accept, they are identical in every way.

The URIs and default prefixes for the EL libraries are listed in Table B-1.

Table B-1. URIs and prefixes for the EL libraries

Library

URI

Prefix

Core

http://java.sun.com/jstl/core

c

XML processing

http://java.sun.com/jstl/xml

x

I18N formatting

http://java.sun.com/jstl/fmt

fmt

Database access

http://java.sun.com/jstl/sql

sql

The URIs and default prefixes for the RT libraries are listed in Table B-2.

Table B-2. URIs and prefixes for the RT libraries

Library

URI

Prefix ...

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.