<%@ taglib prefix="s" uri="/struts-tags"%> <h2>CollegeList</h2> <s:form action="s_CollegeList"> <table width="100%"> <tr> <td align="center"> Name : <s:textfield name="name" label="Name" theme="simple"></s:textfield>  City : <s:textfield name="city" label="City" 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>Name</th> <th>Address</th> <th>State</th> <th>City</th> <th>Phone No</th> <th>Edit</th> </tr> <s:if test="hasActionErrors()"> <tr> <td colspan="8"><font color="red"><s:actionerror /></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="name" /></td> <td><s:property value="address" /></td> <td><s:property value="state" /></td> <td><s:property value="city" /></td> <td><s:property value="phoneNo" /></td> <td><a href="d_College?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="6" align="center"> <s:submit action="d_College" 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> |