gave more explicit names to JSPs

This commit is contained in:
Mic 2013-01-15 10:57:36 +08:00
parent ffa0a6a1cf
commit df5c5ca59d
16 changed files with 23 additions and 23 deletions

View file

@ -18,7 +18,7 @@
<form:form modelAttribute="visit">
<b>Pet:</b>
<table width="333">
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
@ -35,7 +35,7 @@
</tr>
</table>
<table width="333">
<table class="table">
<tr>
<th>
Date:

View file

@ -14,7 +14,7 @@
<h2><fmt:message key="welcome"/></h2>
<ul class="unstyled">
<li><a href="<spring:url value="/owners/search.html" htmlEscape="true" />">Find owner</a></li>
<li><a href="<spring:url value="/owners/find.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>

View file

@ -40,8 +40,8 @@
<bean class="org.springframework.web.accept.PathExtensionContentNegotiationStrategy">
<constructor-arg>
<map>
<entry key="xml" value="#{vets.contentType}"/>
<entry key="atom" value="#{visits.contentType}"/>
<entry key="xml" value="#{vetsList.contentType}"/>
<entry key="atom" value="#{visitsList.contentType}"/>
</map>
</constructor-arg>
</bean>
@ -121,9 +121,9 @@
<!-- - The AtomView rendering a Atom feed of the visits -->
<bean id="visits" class="org.springframework.samples.petclinic.web.VisitsAtomView"/>
<bean id="visitsList" class="org.springframework.samples.petclinic.web.VisitsAtomView"/>
<bean id="vets" class="org.springframework.web.servlet.view.xml.MarshallingView">
<bean id="vetsList" class="org.springframework.web.servlet.view.xml.MarshallingView">
<property name="contentType" value="application/vnd.springsource.samples.petclinic+xml"/>
<property name="marshaller" ref="marshaller"/>
</bean>