javax.servlet.jsp.tagext.IterationTag Interface

This section describes javax.servlet.jsp.tagext.IterationTag interface, which supports 3 event handlers using in the iteration tag lifecycle: doStartTag(), doAfterBody(), and doEndTag().

If you want to the javax.servlet.jsp.tagext.* package, you should starts with the IterationTag interface. The BodyTag interface requires deeper knowledge of JSP in order to evaluate the tag body properly.

Here is the list of methods required by IterationTag interface and their calling conditions:

The steps used by the JSP tag extension facility to process a custom tag can be summarized as follows:

The lifecycle of an IterationTag object can be illustrated as below:
IterationTag Object Lifecycle

Last update: 2012.

Table of Contents

 About This Book

 JSP (JavaServer Pages) Overview

 Tomcat 7 Installation on Windows Systems

 JSP Scripting Elements

 Java Servlet Introduction

 JSP Implicit Objects

 Syntax of JSP Pages and JSP Documents

 JSP Application Session

 Managing Cookies in JSP Pages

 JavaBean Objects and "useBean" Action Elements

 Managing HTTP Response Header Lines

 Non-ASCII Characters Support in JSP Pages

 Performance of JSP Pages

 EL (Expression Language)

 Overview of JSTL (JSP Standard Tag Libraries)

 JSTL Core Library

 JSP Custom Tags

JSP Java Tag Interface

 javax.servlet.jsp.tagext.* Package

javax.servlet.jsp.tagext.IterationTag Interface

 IterationTag Interface Test Class -

 IterationTag Interface Test JSP - TraceTagTest.jspx

 Servlet Class Converted from JSP -

 TagSupport Class - Dummy Implementation of IterationTag

 Custom Tag Attributes

 Multiple Tags Working Together

 File Upload Test Application

 Outdated Tutorials


 PDF Printing Version