<%@ page import="examples.Student"%> <%@ page import="examples.Address"%> <%@ page import="examples.Course"%> <%@ page import="java.util.*"%> <%@page contentType="text/html" %> <% // Note: The name are hard-coded in the test case as well!!! // POJO modify no need to do setAttribute again! Student joe = (Student)session.getAttribute("joe"); joe.getAddress().setZip(94086); Collection col = joe.getCourses(); Course first = (Course)col.iterator().next(); first.setInstructor("White"); %>

Session ID (postfixed by jvmRoute in each node): <%=session.getId()%>

Modifying Joe's instructor to:

<%=first.getInstructor()%>

and zip code to:

<%=joe.getAddress().getZip()%>