Fix method name in the Contact sample code
This commit is contained in:
parent
68ffa0fece
commit
fe080cadbe
|
@ -69,7 +69,7 @@ public class AddDeleteContactController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/secure/del.htm", method = RequestMethod.GET)
|
@RequestMapping(value = "/secure/del.htm", method = RequestMethod.GET)
|
||||||
public ModelAndView handleRequest(@RequestParam("contactId") int contactId) {
|
public ModelAndView delContact(@RequestParam("contactId") int contactId) {
|
||||||
Contact contact = contactManager.getById(Long.valueOf(contactId));
|
Contact contact = contactManager.getById(Long.valueOf(contactId));
|
||||||
contactManager.delete(contact);
|
contactManager.delete(contact);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue