B
Bob Rivers
Hi,
I'm new to JSTL, and I'm trying to understand the forEach interator.
Looking through the example provided (jstl-standard-examples.war)
<c:forEach var="customer" items="${customers}">
<c
ut value="${customer}"/><br>
</c:forEach>
The output is someting like this:
[1] Richard, Maurice 05/15/1935 123 Chemin Royal Montreal Canada
[2] Mikita, Stan 12/25/1947 45 Fisher Blvd Chicago USA (320)876-9784
Ok, no problem. customers is a Vector of customer objects.
How do I get a specific value of the vector? Let's say that I want to
print only the birthdate? Or, what if I want to put each value inside
a table colunm (ex.: <td>name</td><td>birthdate</td>...).
TIA,
Bob
I'm new to JSTL, and I'm trying to understand the forEach interator.
Looking through the example provided (jstl-standard-examples.war)
<c:forEach var="customer" items="${customers}">
<c
</c:forEach>
The output is someting like this:
[1] Richard, Maurice 05/15/1935 123 Chemin Royal Montreal Canada
[2] Mikita, Stan 12/25/1947 45 Fisher Blvd Chicago USA (320)876-9784
Ok, no problem. customers is a Vector of customer objects.
How do I get a specific value of the vector? Let's say that I want to
print only the birthdate? Or, what if I want to put each value inside
a table colunm (ex.: <td>name</td><td>birthdate</td>...).
TIA,
Bob