Skip to content

Instantly share code, notes, and snippets.

@ryanwalker
Created August 3, 2012 18:13
Show Gist options
  • Save ryanwalker/3250110 to your computer and use it in GitHub Desktop.
Save ryanwalker/3250110 to your computer and use it in GitHub Desktop.
public void bindContact(HttpServletRequest request, Model model) throws LoadingException {
...
model.addAttribute("contact", contact);
}
public void create(String view, Integer addingFormId, Model model) {
}
//vs.
public Contact bindContact(HttpServletRequest request) throws LoadingException {
...
return contact;
}
public void create(@ModelAttribute Contact contact, String view, Integer addingFormId, Model model) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment