mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-21 02:51:11 +00:00
Apply patch from SPR-7894
This commit is contained in:
parent
7cbfaf1726
commit
52d4b20d08
5 changed files with 13 additions and 13 deletions
|
|
@ -1,11 +1,11 @@
|
|||
<%@ include file="/WEB-INF/jsp/includes.jsp" %>
|
||||
<%@ include file="/WEB-INF/jsp/header.jsp" %>
|
||||
<c:choose>
|
||||
<c:when test="${owner.new}"><c:set var="method" value="post"/></c:when>
|
||||
<c:when test="${owner['new']}"><c:set var="method" value="post"/></c:when>
|
||||
<c:otherwise><c:set var="method" value="put"/></c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<h2><c:if test="${owner.new}">New </c:if>Owner:</h2>
|
||||
<h2><c:if test="${owner['new']}">New </c:if>Owner:</h2>
|
||||
<form:form modelAttribute="owner" method="${method}">
|
||||
<table>
|
||||
<tr>
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${owner.new}">
|
||||
<c:when test="${owner['new']}">
|
||||
<p class="submit"><input type="submit" value="Add Owner"/></p>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<%@ include file="/WEB-INF/jsp/includes.jsp" %>
|
||||
<%@ include file="/WEB-INF/jsp/header.jsp" %>
|
||||
<c:choose>
|
||||
<c:when test="${pet.new}"><c:set var="method" value="post"/></c:when>
|
||||
<c:when test="${pet['new']}"><c:set var="method" value="post"/></c:when>
|
||||
<c:otherwise><c:set var="method" value="put"/></c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<h2><c:if test="${pet.new}">New </c:if>Pet</h2>
|
||||
<h2><c:if test="${pet['new']}">New </c:if>Pet</h2>
|
||||
|
||||
<b>Owner:</b> ${pet.owner.firstName} ${pet.owner.lastName}
|
||||
<br/>
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${pet.new}">
|
||||
<c:when test="${pet['new']}">
|
||||
<p class="submit"><input type="submit" value="Add Pet"/></p>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
</table>
|
||||
</form:form>
|
||||
|
||||
<c:if test="${!pet.new}">
|
||||
<c:if test="${!pet['new']}">
|
||||
<form:form method="delete">
|
||||
<p class="submit"><input type="submit" value="Delete Pet"/></p>
|
||||
</form:form>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<%@ include file="/WEB-INF/jsp/includes.jsp" %>
|
||||
<%@ include file="/WEB-INF/jsp/header.jsp" %>
|
||||
|
||||
<h2><c:if test="${visit.new}">New </c:if>Visit:</h2>
|
||||
<h2><c:if test="${visit['new']}">New </c:if>Visit:</h2>
|
||||
|
||||
<form:form modelAttribute="visit">
|
||||
<b>Pet:</b>
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
<th>Description</th>
|
||||
</tr>
|
||||
<c:forEach var="visit" items="${visit.pet.visits}">
|
||||
<c:if test="${!visit.new}">
|
||||
<c:if test="${!visit['new']}">
|
||||
<tr>
|
||||
<td><fmt:formatDate value="${visit.date}" pattern="yyyy-MM-dd"/></td>
|
||||
<td>${visit.description}</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue