Created
August 3, 2012 18:13
-
-
Save ryanwalker/3250110 to your computer and use it in GitHub Desktop.
This file contains 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
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