Created
February 20, 2014 22:32
-
-
Save xpadro/9124677 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @RequestMapping(value = "/guests/{surname}", method = RequestMethod.GET) | |
| public String showGuestList(Model model, @PathVariable("surname") String surname) { | |
| model.addAttribute("guests", hotelService.getGuestsList(surname)); | |
| return "results :: resultsList"; | |
| } | |
| @RequestMapping(value = "/guests", method = RequestMethod.GET) | |
| public String showGuestList(Model model) { | |
| model.addAttribute("guests", hotelService.getGuestsList()); | |
| return "results :: resultsList"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment