<%-- page settings --%> <%@ page errorPage = "guestBookErrorPage.jsp" %> <%@ page import = "java.util.*" %> <%@ page import = "com.deitel.jhtp6.jsp.beans.*" %> <%-- GuestDataBean to obtain guest list --%> Guest List

Guest List

<% // start scriptlet List guestList = guestData.getGuestList(); Iterator guestListIterator = guestList.iterator(); GuestBean guest; while ( guestListIterator.hasNext() ) { guest = ( GuestBean ) guestListIterator.next(); %> <%-- end scriptlet; insert fixed template data --%> <% // continue scriptlet } // end while %> <%-- end scriptlet --%>
Last name First name Email
<%= guest.getLastName() %> <%= guest.getFirstName() %> <%= guest.getEmail() %>