<%-- page settings --%> <%@ page errorPage = "guestBookErrorPage.jsp" %> <%-- beans used in this JSP --%> Guest Book Login <% // start scriptlet if ( guest.getFirstName() == null || guest.getLastName() == null || guest.getEmail() == null ) { %> <%-- end scriptlet to insert fixed template data --%>

Enter your first name, last name and email address to register in our guest book.

First name
Last name
Email
<% // continue scriptlet } // end if else { guestData.addGuest( guest ); %> <%-- end scriptlet to insert jsp:forward action --%> <%-- forward to display guest book contents --%> <% // continue scriptlet } // end else %> <%-- end scriptlet --%>