示例#1
0
 @RequestMapping("content/")
 public String selectOneContent(
     @RequestParam("cntNo") int cntNo, @ModelAttribute("pageVO") PageVO pageVO, Model model)
     throws Exception {
   model.addAttribute("boardVO", boardService.selectContent(cntNo));
   return "sboard/contentPage";
 }
示例#2
0
 @RequestMapping(value = "content/", method = RequestMethod.GET)
 public String selectOneContent(
     @RequestParam("cntNo") int cntNo, @ModelAttribute("searchVO") SearchVO searchVO, Model model)
     throws Exception {
   model.addAttribute(boardService.selectContent(cntNo));
   return "sboard/contentPage";
 }
示例#3
0
 // view one content
 @RequestMapping("content/{cntNo}")
 public String selectContent(@PathVariable int cntNo, Model model) throws Exception {
   model.addAttribute("boardVO", boardService.selectContent(cntNo));
   return "sboard/content";
 }