<%@ taglib prefix="s" uri="/struts-tags"%> <center> <h1>Role List</h1> <s:form action="s_RoleList"> <table width="100%"> <tr> <td align="center"> Name : <s:textfield name="name" label="Name" 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>Name</th> <th>Description</th> <th>Edit</th> </tr> <s:if test="hasActionErrors()"> <tr> <td colspan="5"><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="name" /></td> <td><s:property value="description" /></td> <td><a href='d_Role?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="3"> <div class="offset4"> <s:submit action="d_Role" 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> |