예제 #1
0
  @RequestMapping("/")
  public String listContacts(Map<String, Object> map) {

    if (modelo.isEmpty()) {
      contact.setId(-1);
      map.put("contacto", contact);
    } else {
      map.putAll(modelo);
      modelo.clear();
    }

    map.put("contactoList", servicioContacto.listContact());

    return "contacto";
  }
 private void assertModelMapIsEmptyToAvoidQueryStringOnRedirect(ModelMap modelMap) {
   assertTrue(modelMap.isEmpty());
 }