Skip to content
Snippets Groups Projects
Commit 52d4b20d authored by Rossen Stoyanchev's avatar Rossen Stoyanchev Committed by Mic
Browse files

Apply patch from SPR-7894

parent 7cbfaf17
No related branches found
No related tags found
No related merge requests found
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/> <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/resources"/> <classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"> <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes> <attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="output" path="target/classes"/> <classpathentry kind="output" path="target/classes"/>
</classpath> </classpath>
\ No newline at end of file
...@@ -32,18 +32,18 @@ ...@@ -32,18 +32,18 @@
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name> <name>org.eclipse.m2e.core.maven2Builder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>org.springframework.ide.eclipse.core.springnature</nature> <nature>org.springframework.ide.eclipse.core.springnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures> </natures>
</projectDescription> </projectDescription>
<%@ include file="/WEB-INF/jsp/includes.jsp" %> <%@ include file="/WEB-INF/jsp/includes.jsp" %>
<%@ include file="/WEB-INF/jsp/header.jsp" %> <%@ include file="/WEB-INF/jsp/header.jsp" %>
<c:choose> <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:otherwise><c:set var="method" value="put"/></c:otherwise>
</c:choose> </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}"> <form:form modelAttribute="owner" method="${method}">
<table> <table>
<tr> <tr>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<tr> <tr>
<td> <td>
<c:choose> <c:choose>
<c:when test="${owner.new}"> <c:when test="${owner['new']}">
<p class="submit"><input type="submit" value="Add Owner"/></p> <p class="submit"><input type="submit" value="Add Owner"/></p>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
......
<%@ include file="/WEB-INF/jsp/includes.jsp" %> <%@ include file="/WEB-INF/jsp/includes.jsp" %>
<%@ include file="/WEB-INF/jsp/header.jsp" %> <%@ include file="/WEB-INF/jsp/header.jsp" %>
<c:choose> <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:otherwise><c:set var="method" value="put"/></c:otherwise>
</c:choose> </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} <b>Owner:</b> ${pet.owner.firstName} ${pet.owner.lastName}
<br/> <br/>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<tr> <tr>
<td> <td>
<c:choose> <c:choose>
<c:when test="${pet.new}"> <c:when test="${pet['new']}">
<p class="submit"><input type="submit" value="Add Pet"/></p> <p class="submit"><input type="submit" value="Add Pet"/></p>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</table> </table>
</form:form> </form:form>
<c:if test="${!pet.new}"> <c:if test="${!pet['new']}">
<form:form method="delete"> <form:form method="delete">
<p class="submit"><input type="submit" value="Delete Pet"/></p> <p class="submit"><input type="submit" value="Delete Pet"/></p>
</form:form> </form:form>
......
<%@ include file="/WEB-INF/jsp/includes.jsp" %> <%@ include file="/WEB-INF/jsp/includes.jsp" %>
<%@ include file="/WEB-INF/jsp/header.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"> <form:form modelAttribute="visit">
<b>Pet:</b> <b>Pet:</b>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<th>Description</th> <th>Description</th>
</tr> </tr>
<c:forEach var="visit" items="${visit.pet.visits}"> <c:forEach var="visit" items="${visit.pet.visits}">
<c:if test="${!visit.new}"> <c:if test="${!visit['new']}">
<tr> <tr>
<td><fmt:formatDate value="${visit.date}" pattern="yyyy-MM-dd"/></td> <td><fmt:formatDate value="${visit.date}" pattern="yyyy-MM-dd"/></td>
<td>${visit.description}</td> <td>${visit.description}</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment