O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Struts Logic Tags for Iteration

This section provides information about the following tag:

  • <logic:iterate>— Loop over all the values of a collection and evaluate its contents

This section uses the Logic Iterate page at /StrutsTaglibs/LogicIterate.do. The rendered page is shown in Figure 14.4.

Figure 14.4. Logic Iterate page at /StrutsTaglibs/LogicIterate.do.

This page demonstrates a typical use of each of the tags. The source is shown in Listing 14.3.

Listing 14.3. JSP File Demonstrating Use of Struts Logic Tag Iterating over Contents (LogicIterate.jsp)
 <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required