<%@ taglib prefix="s" uri="/struts-tags"%> <h1>User List</h1> <s:form action="s_UserList"> <table width="100%"> <tr> <td align="center"> First Name : <s:textfield name="firstName" label="First Name" theme="simple"></s:textfield>  Login : <s:textfield name="login" label="Login" theme="simple"></s:textfield>  <s:submit name="operation" value="Search" theme="simple"></s:submit></td> </tr> </table> <br> <table border="1" cellpadding="0" cellspacing="0" width="100%"> <tr> <th>Select</th> <th>ID</th> <th>First Name</th> <th>Last Name</th> <th>Login</th> <th>Password</th> <th>Gender</th> <th>Mobile No</th> <th>DOB</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="firstName" /></td> <td><s:property value="lastName" /></td> <td><s:property value="login" /></td> <td><s:property value="password" /></td> <td><s:property value="gender" /></td> <td><s:property value="mobileNo" /></td> <td><s:property value="dob" /></td> <td><a href="d_User?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" /></td> <td colspan="8" align="center"> <s:submit action="d_User" name="operation" value="New" theme="simple" /> <s:submit name="operation" value="Delete" theme="simple" /></td> <td align="right"><s:submit name="operation" value="Next" theme="simple" /></td> </tr> </table> </s:form> |