From 99aa465abc0169579c5b3c317faf8a1e4401726a Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Thu, 24 Apr 2008 06:43:15 +0000 Subject: [PATCH] polish --- .../webflow/samples/booking/HotelsController.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spring-webflow-samples/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/HotelsController.java b/spring-webflow-samples/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/HotelsController.java index fe0382d0..3d12b38b 100644 --- a/spring-webflow-samples/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/HotelsController.java +++ b/spring-webflow-samples/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/HotelsController.java @@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestParam; @Controller public class HotelsController { + private BookingService bookingService; @Autowired @@ -36,14 +37,12 @@ public class HotelsController { } @RequestMapping(method = RequestMethod.GET) - public Hotel show(@RequestParam("id") - Long id) { + public Hotel show(@RequestParam("id") Long id) { return bookingService.findHotelById(id); } @RequestMapping(method = RequestMethod.GET) - public String deleteBooking(@RequestParam("id") - Long id) { + public String deleteBooking(@RequestParam("id") Long id) { bookingService.cancelBooking(id); return "redirect:index"; }