@RequestMapping(value = "/mypage/managetag.do", method = RequestMethod.GET) public ModelAndView viewManagetag(@RequestParam(value = "tn", required = false) String tagName) { ModelAndView modelAndView = new ModelAndView("/mypage/managetag"); List<TagView> tagTypeList = tagService.findTagTypes(); List<TagView> tagList = null; if (tagName != null) { tagList = tagService.findTags(tagName); } modelAndView.addObject("tagTypeList", tagTypeList); modelAndView.addObject("tagList", tagList); modelAndView.addObject("subTitle", "태그관리"); modelAndView.addObject("mypageType", "managetag"); return modelAndView; }