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">
|
||||
<tr>
|
||||
<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>
|
||||
</table>
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<head>
|
||||
<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>
|
||||
</head>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<%@ include file="/WEB-INF/jsp/includes.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>
|
||||
|
||||
<ul>
|
||||
<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="/html/petclinic.html" escapeXml="true" />">Tutorial</a></li>
|
||||
<li><a href="<spring:url value="/static/html/tutorial.html" escapeXml="true" />">Tutorial</a></li>
|
||||
</ul>
|
||||
|
||||
<p> </p>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@
|
|||
<param-name>webAppRootKey</param-name>
|
||||
<param-value>petclinic.root</param-value>
|
||||
</context-param>
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
Location of the Log4J config file, for initialization and refresh checks.
|
||||
|
|
@ -88,26 +90,14 @@
|
|||
<!--
|
||||
- Map static resources to the default servlet
|
||||
- examples:
|
||||
- http://localhost:8080/images/pets.png
|
||||
- http://localhost:8080/styles/petclinic.css
|
||||
- http://localhost:8080/static/images/pets.png
|
||||
- http://localhost:8080/static/styles/petclinic.css
|
||||
-->
|
||||
<servlet-mapping>
|
||||
<servlet-name>default</servlet-name>
|
||||
<url-pattern>*.png</url-pattern>
|
||||
<url-pattern>/static/*</url-pattern>
|
||||
</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).
|
||||
- Has its own application context, by default defined in "{servlet-name}-servlet.xml",
|
||||
|
|
@ -168,6 +158,4 @@
|
|||
</resource-ref>
|
||||
-->
|
||||
|
||||
|
||||
|
||||
</web-app>
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ li {
|
|||
}
|
||||
|
||||
li ul {
|
||||
list-style: square url(images/sub-bullet.gif);
|
||||
list-style: square url(../images/bullet-arrow.png);
|
||||
}
|
||||
|
||||
li ul li ul {
|
||||
|
|
@ -231,4 +231,4 @@ fieldset th {
|
|||
padding:2px 8px;
|
||||
font-size:11px;
|
||||
color:#888888;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue