@RequestMapping(value = "/updateTag", method = RequestMethod.POST) public String updateTag(ModelMap model, Tag tag) throws ServiceException { if (tag.getTagName().length() == 0) { tagService.deleteTag(tag.getTagId()); } else { tagService.editTag(tag.getTagId(), tag.getTagName()); } fillingTags(model, 0); return "addUpdateTags"; }
@RequestMapping(value = "/deleteTag", method = RequestMethod.POST) public String deleteTag(ModelMap model, Tag tag) throws ServiceException { tagService.deleteTag(tag.getTagId()); fillingTags(model, 0); return "addUpdateTags"; }