예제 #1
0
 public void executeRead(HttpServletRequest request, ModelMap modelMap, Object command)
     throws Exception {
   // 한화면에 여러 상세 조회 객체를 표현해야 할때가 있다. 폼 자동바인딩이나 벨리데이션 영향을 받지 않기 때문에 default  "프로그ID+Cmd" 로 설정해준다.
   String progrmNm = (String) request.getAttribute("progrmNm");
   modelMap.addAttribute("command", dao.selectByPk(progrmNm + "Dao.read", command));
 }
예제 #2
0
 public void executeUpdateForm(HttpServletRequest request, ModelMap modelMap, Object command)
     throws Exception {
   String progrmNm = (String) request.getAttribute("progrmNm");
   modelMap.addAttribute("command", dao.selectByPk(progrmNm + "Dao.read", command));
 }