Role.jsp

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>

<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>

<%@page isELIgnored="false"%>

<h1>Role</h1>

<h2 class="success">${success}</h2>

<h2 class="error">${error}</h2>

<sf:form action="Role" method="post" commandName="form">

<table>

<sf:hidden path="id" />

<sf:hidden path="createdBy"></sf:hidden>

<sf:hidden path="modifiedBy"></sf:hidden>

<sf:hidden path="createdDatetime"></sf:hidden>

<sf:hidden path="modifiedDatetime"></sf:hidden>

<tr>

<td><sf:label path="roleName">

<s:message code="label.name"></s:message>

</sf:label></td>

<td><sf:input path="roleName" /></td>

<td><sf:errors path="roleName" cssClass="error" /></td>

</tr>

<tr>

<td><sf:label path="roleDescription">

<s:message code="label.description"></s:message>

</sf:label></td>

<td><sf:input path="roleDescription" /></td>

<td><sf:errors path="roleDescription" cssClass="error" /></td>

</tr>

<tr>

<td colspan="3"><input type="submit" value="Save"

name="operation">&nbsp; <c:if test="${form.id > 0}">

<input type="submit" value="Delete" name="operation" />&nbsp;

</c:if> <a href="<c:url value="/ctl/Role/search" />">List</a></td>

</tr>

</table>

</sf:form>