FYI,
Maybe it was obvious to others, but I was going over the conditionals section 
for <c:foreach> in the lab work that calls If.jsp
On first glance of the output:

Simple Conditional Execution
Customers living in the USA
[2] Mikita, Stan 12/25/1947 45 Fisher Blvd Chicago USA (320)876-9784
[3] Gilbert, Rod 03/11/1951 123 Main Street New-York City USA
[4] Howe, Gordie 07/25/1946 7654 Wings Street Detroit USA (465)675-0761 
(465)879-9802

I was wondering how this code:
<c:forEach var="customer" items="${customers}">
  <c:if test="${customer.address.country == 'USA'}">
    ${customer}<br>
  </c:if>
</c:forEach>

was rendering the customer objects as above. At the bottom of the Customer.java 
class I found a toString() call that was obviously being used for this purpose. 
Just found it clever, but worth noting the technique.






      

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to