Class 2 Intermediate Java 30-IT-397  

Register.jsp

<%@page contentType="text/html"%>
<html>
<head><title>JSP Page</title></head>
<body>

<%-- <jsp:useBean id="beanInstanceName" scope="session" class="package.class" /> --%>
<%-- <jsp:getProperty name="beanInstanceName"  property="propertyName" /> --%>

<%@ taglib uri="/utils" prefix="utils" %>
<%@ taglib uri="/tbl" prefix="tbl" %>

Please enter the name, age, and gender of each of your dependents.

<%! private int rep = 0; %>

<form name="dependentInfo" method="GET" action="registerGroup.jsp">
<table>
    <tbl:RowBody color="#DDDDDD">Name</tbl:RowBody>
    <tbl:RowBody color="#DDDDDD">Age</tbl:RowBody>
    <tbl:RowBody color="#DDDDDD">Gender</tbl:RowBody>
    <utils:Repeat reps='<%= request.getParameter("dependents") %>'>
        <tr>
            <td><input type="TEXT" name="NAME<%= ++rep %>"></td>
            <td><input type="TEXT" name="AGE<%= rep %>"></td>
            <td><input type="TEXT" name="GENDER<%= rep %>"></td>
        </tr>
    </utils:Repeat>
</table>
</form>

<!--
            <td><input type="TEXT" name="NAME"></td>
            <td><input type="TEXT" name="AGE"></td>
            <td><input type="TEXT" name="GENDER"></td>

-->

</body>
</html>

 Back
 

Created by:  Brandan Jones December 17, 2001