@RequestMapping(value="/cmt/{id}/view/{type}", method=RequestMethod.GET)
public String view(@PathVariable String id,
@PathVariable String type, Model model,
HttpServletRequest request, HttpSession session){
if(!ajaxUtil.isAjaxRequest(request)){
throw new ResourceNotFoundException();
}
Comment cmt = commentRepository.findOne(id);
model.addAttribute("cmt", cmt);
return "ops/cmt."+ type;
}