<%@ taglib prefix="s" uri="/struts-tags"%> <center> <h1>Marksheet List</h1> <s:form action="s_MarksheetList"> <table width="100%"> <tr> <td align="center"> Name : <s:textfield name="name" label="Name" theme="simple"></s:textfield>  RollNo : <s:textfield name="rollNo" label="RollNo" 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>RollNo</th> <th>Name</th> <th>Physics</th> <th>Chemistry</th> <th>Maths</th> <th>Edit</th> </tr> <s:if test="hasActionErrors()"> <tr> <td colspan="8"><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="rollNo" /></td> <td><s:property value="name" /></td> <td><s:property value="physics" /></td> <td><s:property value="chemistry" /></td> <td><s:property value="maths" /></td> <td><a href='d_Marksheet?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="6"> <div class="offset4"> <s:submit action="d_Marksheet" 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> |