Warren, In this case, person is not a Vector. You don't have to use c:forEach, though. Try again, without it.
I hope it helps! Cheers, Marcos --- Em sáb, 7/3/09, Warren Schembri <wschem...@gmail.com> escreveu: De: Warren Schembri <wschem...@gmail.com> Assunto: [java ee programming] Homework Lab 4006 - Not sure what I'm doing wrong Para: java-ee-j2ee-programming-with-passion@googlegroups.com Data: Sábado, 7 de Março de 2009, 19:14 Hi All, I have created the Person/Name object. However, it is not working In Init.java, I have the following code: Person person = new Person ("Warren", "Schembri"); sce.getServletContext().setAttribute("my_person", person); In response.jsp, I have the following: <table border="1"> <c:forEach var="person" items="${my_person}"> <tr> <td><c:out value="${person.name.firstName}"/></td> <td><c:out value="${person.name.lastName}"/></td> </tr> </c:forEach> </table> I am using GlassFish by the way. Just cannot work out why this is not working. Thanks in advance Warren Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---