<foreach> element

Appears in: many

An element that renders its body repeatedly, much like a Foreach component. An expression supplies a collection or array of objects, and its body is rendered for each element in the collection.

Figure C.2. <foreach> Attributes

NameTypeRequired ?Default ValueDescription
keystringyes The symbol to be updated with each successive value.
expressionstringyes The OGNL expression which provides the source of elements.

Figure C.3. <foreach> Elements


  (text | <foreach> | <if> | <if-not>) *