From 6f7b42206e5e196fa438328c89658244315eaac9 Mon Sep 17 00:00:00 2001 From: Mic <misvy@vmware.com> Date: Tue, 15 Jan 2013 09:42:45 +0800 Subject: [PATCH] added .html extension for all JSP/html content --- src/main/webapp/WEB-INF/jsp/owners/form.jsp | 6 ++++-- src/main/webapp/WEB-INF/jsp/owners/list.jsp | 2 +- src/main/webapp/WEB-INF/jsp/owners/search.jsp | 4 ++-- src/main/webapp/WEB-INF/jsp/welcome.jsp | 4 ++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/owners/form.jsp b/src/main/webapp/WEB-INF/jsp/owners/form.jsp index 7b50fea..17baa65 100644 --- a/src/main/webapp/WEB-INF/jsp/owners/form.jsp +++ b/src/main/webapp/WEB-INF/jsp/owners/form.jsp @@ -10,7 +10,7 @@ <jsp:include page="../header.jsp"/> <body> - <div class="container" style="padding-top: 50px;"> + <div class="container"> <spring:url value="/resources/images/banner-graphic.png" var="banner"/> <img src="${banner}" /> <c:choose> @@ -18,7 +18,9 @@ <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}" class="form-horizontal" id="add-owner-form"> <fieldset> <div class="control-group" id="firstName"> diff --git a/src/main/webapp/WEB-INF/jsp/owners/list.jsp b/src/main/webapp/WEB-INF/jsp/owners/list.jsp index 5ca9cec..c8cee48 100644 --- a/src/main/webapp/WEB-INF/jsp/owners/list.jsp +++ b/src/main/webapp/WEB-INF/jsp/owners/list.jsp @@ -29,7 +29,7 @@ <c:forEach var="owner" items="${selections}"> <tr> <td> - <spring:url value="owners/{ownerId}" var="ownerUrl"> + <spring:url value="owners/{ownerId}.html" var="ownerUrl"> <spring:param name="ownerId" value="${owner.id}"/> </spring:url> <a href="${fn:escapeXml(ownerUrl)}">${owner.firstName} ${owner.lastName}</a> diff --git a/src/main/webapp/WEB-INF/jsp/owners/search.jsp b/src/main/webapp/WEB-INF/jsp/owners/search.jsp index 440da97..954a88f 100644 --- a/src/main/webapp/WEB-INF/jsp/owners/search.jsp +++ b/src/main/webapp/WEB-INF/jsp/owners/search.jsp @@ -15,8 +15,8 @@ <h2>Find Owners</h2> - <spring:url value="/owners" var="formUrl"/> - <form:form modelAttribute="owner" action="${fn:escapeXml(formUrl)}" method="get" class="form-horizontal"> + <spring:url value="/owners.html" var="formUrl"/> + <form:form modelAttribute="owner" action="${fn:escapeXml(formUrl)}" method="get" class="form-horizontal" style="width:600px;"> <fieldset> <div class="controls"> <label class="control-label">Last name </label> diff --git a/src/main/webapp/WEB-INF/jsp/welcome.jsp b/src/main/webapp/WEB-INF/jsp/welcome.jsp index f292716..89e2f2e 100644 --- a/src/main/webapp/WEB-INF/jsp/welcome.jsp +++ b/src/main/webapp/WEB-INF/jsp/welcome.jsp @@ -14,8 +14,8 @@ <h2><fmt:message key="welcome"/></h2> <ul class="unstyled"> - <li><a href="<spring:url value="/owners/search" 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="/owners/search.html" htmlEscape="true" />">Find owner</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> </ul> -- GitLab