Пример #1
0
 @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";
 }
Пример #2
0
 @RequestMapping(value = "/deleteTag", method = RequestMethod.POST)
 public String deleteTag(ModelMap model, Tag tag) throws ServiceException {
   tagService.deleteTag(tag.getTagId());
   fillingTags(model, 0);
   return "addUpdateTags";
 }