- The View
- Hold Data submitted in HTML form
<%@ taglib uri="struts/html-el" prefix="html" %>
<html>
<body>
<html:form action="insertEmployee" focus="name">
<table>
<tr>
<td >Name:</td>
<td><html:text property="name"/></td>
</tr>
<tr>
<td>Age:</td>
<td><html:text property="age"/></td>
</tr>
<tr>
<td>Department:</td>
<td>
<html:select name="employeeForm" property="department">
<html:options collection="departments" property="id" labelProperty="description"/>
</html:select>
</td>
</tr>
</table>
<html:submit>Submit</html:submit>
</html:form>
</body>
</html>