Skip to content

Instantly share code, notes, and snippets.

@xpadro
Created February 20, 2014 22:32
Show Gist options
  • Select an option

  • Save xpadro/9124677 to your computer and use it in GitHub Desktop.

Select an option

Save xpadro/9124677 to your computer and use it in GitHub Desktop.
@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