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

--~--~---------~--~----~------------~-------~--~----~
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