<%@ taglib prefix="s" uri="/struts-tags"%> <center> <h1>Student List</h1> <s:form action="s_StudentList"> <table width="100%"> <tr> <td align="center"> First Name : <s:textfield name="firstName" label="First Name" theme="simple"></s:textfield>  Last Name : <s:textfield name="lastName" label="Last Name" theme="simple"></s:textfield>  Email : <s:textfield name="email" label="Email" theme="simple"></s:textfield>  <s:submit name="operation" value="Search" theme="simple" cssClass="btn-success"></s:submit></td> </tr> </table> <br> <table width="100%" class="table table-striped table-hover"> <tr> <th>Select</th> <th>ID</th> <th>College Name</th> <th>First Name</th> <th>Last Name</th> <th>DOB</th> <th>Mobile No</th> <th>Email</th> <th>Edit</th> </tr> <s:if test="hasActionErrors()"> <tr> <td colspan="9"><font color="red"><s:actionerror theme="simple" /></font></td> </tr> </s:if> <s:iterator value="dtoList" status="status" var='%{0,1}'> <tr> <td><input type="checkbox" name="ids" value='<s:property value="id"/>'></td> <td><s:property value='%{#status.count}' /></td> <td><s:property value="collegeName" /></td> <td><s:property value="firstName" /></td> <td><s:property value="lastName" /></td> <td><s:property value="dob" /></td> <td><s:property value="mobileNo" /></td> <td><s:property value="email" /></td> <td><a href="d_Student?id=<s:property value="id" />">Edit</a></td> </tr> </s:iterator> <tr> <s:hidden name="pageNo"></s:hidden> <td><s:submit name="operation" value="Previous" theme="simple" cssClass="btn-success" /></td> <td colspan="7"> <div class="offset4"> <s:submit action="d_Student" name="operation" value="New" theme="simple" cssClass="btn-success" /> <s:submit name="operation" value="Delete" theme="simple" cssClass="btn-success" /> </div> </td> <td><s:submit name="operation" value="Next" theme="simple" cssClass="btn-success" /></td> </tr> </table> </s:form> </center> |