Remapped static resources as /petclinic/static/images/...
Renamed tutorial from petclinic.html -> tutorial.html
This commit is contained in:
parent
3ddd08942c
commit
d0b03604c8
|
|
@ -2,7 +2,7 @@
|
||||||
<table class="footer">
|
<table class="footer">
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="<spring:url value="/" escapeXml="true" />">Home</a></td>
|
<td><a href="<spring:url value="/" escapeXml="true" />">Home</a></td>
|
||||||
<td align="right"><img src="<spring:url value="/images/springsource-logo.png" escapeXml="true" />" alt="Sponsored by SpringSource"/></td>
|
<td align="right"><img src="<spring:url value="/static/images/springsource-logo.png" escapeXml="true" />" alt="Sponsored by SpringSource"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||||
<link rel="stylesheet" href="<spring:url value="/styles/petclinic.css" escapeXml="true" />" type="text/css"/>
|
<link rel="stylesheet" href="<spring:url value="/static/styles/petclinic.css" escapeXml="true" />" type="text/css"/>
|
||||||
<title>PetClinic :: a Spring Framework demonstration</title>
|
<title>PetClinic :: a Spring Framework demonstration</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
<%@ 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" %>
|
||||||
|
|
||||||
<img src="<spring:url value="/images/pets.png" escapeXml="true" />" align="right" style="position:relative;right:30px;">
|
<img src="<spring:url value="/static/images/pets.png" escapeXml="true" />" align="right" style="position:relative;right:30px;">
|
||||||
<h2><fmt:message key="welcome"/></h2>
|
<h2><fmt:message key="welcome"/></h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="<spring:url value="/owners/search" escapeXml="true" />">Find owner</a></li>
|
<li><a href="<spring:url value="/owners/search" escapeXml="true" />">Find owner</a></li>
|
||||||
<li><a href="<spring:url value="/vets" escapeXml="true" />">Display all veterinarians</a></li>
|
<li><a href="<spring:url value="/vets" escapeXml="true" />">Display all veterinarians</a></li>
|
||||||
<li><a href="<spring:url value="/html/petclinic.html" escapeXml="true" />">Tutorial</a></li>
|
<li><a href="<spring:url value="/static/html/tutorial.html" escapeXml="true" />">Tutorial</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@
|
||||||
<param-name>webAppRootKey</param-name>
|
<param-name>webAppRootKey</param-name>
|
||||||
<param-value>petclinic.root</param-value>
|
<param-value>petclinic.root</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Location of the Log4J config file, for initialization and refresh checks.
|
Location of the Log4J config file, for initialization and refresh checks.
|
||||||
|
|
@ -88,26 +90,14 @@
|
||||||
<!--
|
<!--
|
||||||
- Map static resources to the default servlet
|
- Map static resources to the default servlet
|
||||||
- examples:
|
- examples:
|
||||||
- http://localhost:8080/images/pets.png
|
- http://localhost:8080/static/images/pets.png
|
||||||
- http://localhost:8080/styles/petclinic.css
|
- http://localhost:8080/static/styles/petclinic.css
|
||||||
-->
|
-->
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
<servlet-name>default</servlet-name>
|
<servlet-name>default</servlet-name>
|
||||||
<url-pattern>*.png</url-pattern>
|
<url-pattern>/static/*</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
<servlet-mapping>
|
|
||||||
<servlet-name>default</servlet-name>
|
|
||||||
<url-pattern>*.gif</url-pattern>
|
|
||||||
</servlet-mapping>
|
|
||||||
<servlet-mapping>
|
|
||||||
<servlet-name>default</servlet-name>
|
|
||||||
<url-pattern>*.css</url-pattern>
|
|
||||||
</servlet-mapping>
|
|
||||||
<servlet-mapping>
|
|
||||||
<servlet-name>default</servlet-name>
|
|
||||||
<url-pattern>*.html</url-pattern>
|
|
||||||
</servlet-mapping>
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
- Servlet that dispatches request to registered handlers (Controller implementations).
|
- Servlet that dispatches request to registered handlers (Controller implementations).
|
||||||
- Has its own application context, by default defined in "{servlet-name}-servlet.xml",
|
- Has its own application context, by default defined in "{servlet-name}-servlet.xml",
|
||||||
|
|
@ -168,6 +158,4 @@
|
||||||
</resource-ref>
|
</resource-ref>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</web-app>
|
</web-app>
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ li {
|
||||||
}
|
}
|
||||||
|
|
||||||
li ul {
|
li ul {
|
||||||
list-style: square url(images/sub-bullet.gif);
|
list-style: square url(../images/bullet-arrow.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
li ul li ul {
|
li ul li ul {
|
||||||
|
|
@ -231,4 +231,4 @@ fieldset th {
|
||||||
padding:2px 8px;
|
padding:2px 8px;
|
||||||
font-size:11px;
|
font-size:11px;
|
||||||
color:#888888;
|
color:#888888;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue