JBoss.orgCommunity Documentation
The <c:forEach /> iterates over a collection, iterator or an array of objects. It uses the same syntax as the standard JSTL <c:forEach /> tag.
Table 12.1. The <c:forEach /> attributes
| Attribute Name | Description | Required |
|---|---|---|
| begin | Defines the starting index | False |
| end | Defines the ending index | False |
| items | Defines the expression used to iterate over. This expression could resolve to an Iterator, Collection, Map, Array, Enumeration or comma separated String. | False |
| step | Defines the index increment step | False |
| var | Defines the variable name to export for the item being iterated over | True |
The <c:if /> tag is a simple conditional tag, which evalutes its body if the supplied condition is true.
Table 12.2. The <c:if /> attributes
| Attribute Name | Description | Required |
|---|---|---|
| test | Defines the test condition that determines whether or not the body content should be processed. | True |
The <c:set /> tag declares a request scope variable with a value returned by an evaluated expression.
Table 12.3. The <c:set /> attributes
| Attribute Name | Description | Required |
|---|---|---|
| var | Defines a name of the variable which holds the value | True |
| value | Defines an expression to be evaluated | True |
The <f:attribute /> tag assigns a value to a component attribute.
Table 12.4. The <f:attribute /> attributes
| Attribute Name | Description | Required |
|---|---|---|
| name | Defines the name of a component attribute | True |
| value | Defines a value of the attribute | True |