<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>  
<html>
<head> 
<title>Passenger Details</title> 
<s:head /> 
</head>
<body>
   <s:form action="addPassenger">
   <s:textfield name="firstName" label="First Name"/>
   <s:textfield name="lastName" label="Last Name"/>   
   <s:submit/>
   </s:form>   
   <hr/>
   
   <table>
      <tr><td>First Name</td><td>Last Name</td></tr>      
      <s:iterator value="passengers">	
         <tr>
            <td><s:property value="firstName"/></td><td><s:property value="lastName"/></td>
         </tr>
      </s:iterator>	
   </table>

</body>
</html>