Fixed issue with Atom export

This commit is contained in:
Mic 2013-02-07 10:08:53 +08:00
parent 97e1890867
commit 47ddd6f934
2 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ public class VisitController {
*/
@RequestMapping(value="/owners/*/pets/{petId}/visits", method=RequestMethod.GET)
public ModelAndView showVisits(@PathVariable int petId) {
ModelAndView mav = new ModelAndView("visits");
ModelAndView mav = new ModelAndView("visitList");
mav.addObject("visits", this.clinicService.findPetById(petId).getVisits());
return mav;
}

View file

@ -26,7 +26,7 @@
<constructor-arg>
<map>
<entry key="xml" value="application/vnd.springsource.samples.petclinic+xml"/>
<entry key="atom" value="#{visitsList.contentType}"/>
<entry key="atom" value="#{visitList.contentType}"/>
</map>
</constructor-arg>
</bean>
@ -54,7 +54,7 @@
p:suffix=".jsp" p:order="2"/>
<!-- - The AtomView rendering a Atom feed of the visits -->
<bean id="visitsList" class="org.springframework.samples.petclinic.web.VisitsAtomView"/>
<bean id="visitList" class="org.springframework.samples.petclinic.web.VisitsAtomView"/>
<bean id="vets/vetsList" class="org.springframework.web.servlet.view.xml.MarshallingView">
<property name="marshaller" ref="marshaller"/>