예제 #1
0
  @RequestMapping("diaryDetail")
  public String diaryDetail(String c, Model model) {

    DiaryImage di = diaryImageDao.getDiaryImage(c);
    Diary d = diaryDao.getDiary(c);

    model.addAttribute("d", d);
    model.addAttribute("di", di);

    return "diary.diaryDetail";
  }
예제 #2
0
  @RequestMapping(value = "diaryUdtReg", method = RequestMethod.GET)
  public String diaryUdtReg(String c, Model model) {

    DiaryImage di = diaryImageDao.getDiaryImage(c);
    Diary d = diaryDao.getDiary(c);

    model.addAttribute("d", d);
    model.addAttribute("di", di);

    return "diary.diaryUdtReg";
  }