ownerForm.jsp
上传用户:dezhong
上传日期:2022-08-10
资源大小:167k
文件大小:2k
源码类别:

Java编程

开发平台:

Java

  1. <%@ include file="/WEB-INF/jsp/includes.jsp" %>
  2. <%@ include file="/WEB-INF/jsp/header.jsp" %>
  3. <h2><c:if test="${owner.new}">New </c:if>Owner:</h2>
  4. <form:form modelAttribute="owner">
  5.   <table>
  6.     <tr>
  7.       <th>
  8.         First Name: <form:errors path="firstName" cssClass="errors"/>
  9.         <br/>
  10.         <form:input path="firstName" size="30" maxlength="80"/>
  11.       </th>
  12.     </tr>
  13.     <tr>
  14.       <th>
  15.         Last Name: <form:errors path="lastName" cssClass="errors"/>
  16.         <br/>
  17.         <form:input path="lastName" size="30" maxlength="80"/>
  18.       </th>
  19.     </tr>
  20.     <tr>
  21.       <th>
  22.         Address: <form:errors path="address" cssClass="errors"/>
  23.         <br/>
  24.         <form:input path="address" size="30" maxlength="80"/>
  25.       </th>
  26.     </tr>
  27.     <tr>
  28.       <th>
  29.         City: <form:errors path="city" cssClass="errors"/>
  30.         <br/>
  31.         <form:input path="city" size="30" maxlength="80"/>
  32.       </th>
  33.     </tr>
  34.     <tr>
  35.       <th>
  36.         Telephone: <form:errors path="telephone" cssClass="errors"/>
  37.         <br/>
  38.         <form:input path="telephone" size="20" maxlength="20"/>
  39.       </th>
  40.     </tr>
  41.     <tr>
  42.       <td>
  43.         <c:choose>
  44.           <c:when test="${owner.new}">
  45.             <p class="submit"><input type="submit" value="Add Owner"/></p>
  46.           </c:when>
  47.           <c:otherwise>
  48.             <p class="submit"><input type="submit" value="Update Owner"/></p>
  49.           </c:otherwise>
  50.         </c:choose>
  51.       </td>
  52.     </tr>
  53.   </table>
  54. </form:form>
  55. <%@ include file="/WEB-INF/jsp/footer.jsp" %>