Contents | Prev | Next

Revised: 07/25/00


Tag Libraries Tutorial (v. 1.0)

Contents



Preface

What is a Tag Library?

Using Tags

Declaring Tag Libraries

Types of Tags

Simple Tags
Tags With Attributes
Tags With a Body
Choosing Between Passing Information as Attributes or Body
Tags That Define Scripting Variables
Cooperating Tags

Defining Tags

Tag Handlers

Tag Library Descriptors

Simple Tags

Tag Handlers
TLD bodycontent Element

Tags With Attributes

Defining Attributes in a Tag Handler
TLD attribute Element
Attribute Validation

Tags With a Body

Tag Handlers
TLD bodycontent Element

Tags That Define Scripting Variables

Tag Handlers
TLD teiclass Element

Cooperating Tags

Examples

An Iteration Tag

JSP Page
Tag Handler
Tag Extra Info Class

A Template Mechanism

JSP Page
Tag Handlers
Web Application Deployment Descriptor

How Is a Tag Handler Invoked?



Contents | Prev | Next
Copyright © 2000 Sun Microsystems, Inc. All rights reserved.