ownerForm.jsp
资源名称:petclinic.rar [点击查看]
上传用户:dezhong
上传日期:2022-08-10
资源大小:167k
文件大小:2k
源码类别:
Java编程
开发平台:
Java
- <%@ include file="/WEB-INF/jsp/includes.jsp" %>
- <%@ include file="/WEB-INF/jsp/header.jsp" %>
- <h2><c:if test="${owner.new}">New </c:if>Owner:</h2>
- <form:form modelAttribute="owner">
- <table>
- <tr>
- <th>
- First Name: <form:errors path="firstName" cssClass="errors"/>
- <br/>
- <form:input path="firstName" size="30" maxlength="80"/>
- </th>
- </tr>
- <tr>
- <th>
- Last Name: <form:errors path="lastName" cssClass="errors"/>
- <br/>
- <form:input path="lastName" size="30" maxlength="80"/>
- </th>
- </tr>
- <tr>
- <th>
- Address: <form:errors path="address" cssClass="errors"/>
- <br/>
- <form:input path="address" size="30" maxlength="80"/>
- </th>
- </tr>
- <tr>
- <th>
- City: <form:errors path="city" cssClass="errors"/>
- <br/>
- <form:input path="city" size="30" maxlength="80"/>
- </th>
- </tr>
- <tr>
- <th>
- Telephone: <form:errors path="telephone" cssClass="errors"/>
- <br/>
- <form:input path="telephone" size="20" maxlength="20"/>
- </th>
- </tr>
- <tr>
- <td>
- <c:choose>
- <c:when test="${owner.new}">
- <p class="submit"><input type="submit" value="Add Owner"/></p>
- </c:when>
- <c:otherwise>
- <p class="submit"><input type="submit" value="Update Owner"/></p>
- </c:otherwise>
- </c:choose>
- </td>
- </tr>
- </table>
- </form:form>
- <%@ include file="/WEB-INF/jsp/footer.jsp" %>