JSTL (JavaServer Pages Standard Tag Library) is an important simplification of the Java Web platform. With JSTL, page authors can now write dynamic pages using standard HTML-like tags and an easy-to-learn expression language. JSTL is a standard from the Java Community Process, and its expression language will become part of JSP 2.0.
JSTL in Action shows you how to write rich, dynamic Web pages without programming. From simple loops to tricky XML processing, every feature of JSTL is covered and exercised in numerous useful examples. Whether you are a novice page author or an experienced Java programmer, this book shows you easy ways to create powerful web sites.
Chapter 5: Controlling Flow with Loops covers looping over collections with <c:forEach>, parsing strings with <c:forTokens>, iterating over subsets, and determining current loops status.
Reproduced from JSTL in Action by permission of Manning Publications Co. ISBN 1930110529 copyright 2003. All rights reserved. For further information go to www.manning.com/bayern.