mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 12:45:48 +00:00
added .html extension for all JSP/html content
This commit is contained in:
parent
05c1110dce
commit
6f7b42206e
4 changed files with 9 additions and 7 deletions
|
@ -10,7 +10,7 @@
|
||||||
<jsp:include page="../header.jsp"/>
|
<jsp:include page="../header.jsp"/>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="container" style="padding-top: 50px;">
|
<div class="container">
|
||||||
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
|
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
|
||||||
<img src="${banner}" />
|
<img src="${banner}" />
|
||||||
<c:choose>
|
<c:choose>
|
||||||
|
@ -18,7 +18,9 @@
|
||||||
<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}" class="form-horizontal" id="add-owner-form">
|
<form:form modelAttribute="owner" method="${method}" class="form-horizontal" id="add-owner-form">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<div class="control-group" id="firstName">
|
<div class="control-group" id="firstName">
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<c:forEach var="owner" items="${selections}">
|
<c:forEach var="owner" items="${selections}">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<spring:url value="owners/{ownerId}" var="ownerUrl">
|
<spring:url value="owners/{ownerId}.html" var="ownerUrl">
|
||||||
<spring:param name="ownerId" value="${owner.id}"/>
|
<spring:param name="ownerId" value="${owner.id}"/>
|
||||||
</spring:url>
|
</spring:url>
|
||||||
<a href="${fn:escapeXml(ownerUrl)}">${owner.firstName} ${owner.lastName}</a>
|
<a href="${fn:escapeXml(ownerUrl)}">${owner.firstName} ${owner.lastName}</a>
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
|
|
||||||
<h2>Find Owners</h2>
|
<h2>Find Owners</h2>
|
||||||
|
|
||||||
<spring:url value="/owners" var="formUrl"/>
|
<spring:url value="/owners.html" var="formUrl"/>
|
||||||
<form:form modelAttribute="owner" action="${fn:escapeXml(formUrl)}" method="get" class="form-horizontal">
|
<form:form modelAttribute="owner" action="${fn:escapeXml(formUrl)}" method="get" class="form-horizontal" style="width:600px;">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<label class="control-label">Last name </label>
|
<label class="control-label">Last name </label>
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
<h2><fmt:message key="welcome"/></h2>
|
<h2><fmt:message key="welcome"/></h2>
|
||||||
|
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<li><a href="<spring:url value="/owners/search" htmlEscape="true" />">Find owner</a></li>
|
<li><a href="<spring:url value="/owners/search.html" htmlEscape="true" />">Find owner</a></li>
|
||||||
<li><a href="<spring:url value="/vets" htmlEscape="true" />">Display all veterinarians</a></li>
|
<li><a href="<spring:url value="/vets.html" htmlEscape="true" />">Display all veterinarians</a></li>
|
||||||
<li><a href="<spring:url value="/resources/html/tutorial.html" htmlEscape="true" />">Tutorial</a></li>
|
<li><a href="<spring:url value="/resources/html/tutorial.html" htmlEscape="true" />">Tutorial</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue