Skip to content
Snippets Groups Projects
Commit 47ddd6f9 authored by Mic's avatar Mic
Browse files

Fixed issue with Atom export

parent 97e18908
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
......@@ -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"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment