public void executeList(HttpServletRequest request, ModelMap modelMap, Object command) throws Exception { String progrmNm = (String) request.getAttribute("progrmNm"); modelMap.addAttribute("cmdList", dao.list(progrmNm + "Dao.list", command)); }
public void executeDelete(HttpServletRequest request, ModelMap modelMap, Object command) throws Exception { String progrmNm = (String) request.getAttribute("progrmNm"); dao.delete(progrmNm + "Dao.delete", command); }
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)); }
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)); }
public void executeCreate(HttpServletRequest request, ModelMap modelMap, Object command) throws Exception { String progrmNm = (String) request.getAttribute("progrmNm"); // 5.등록쿼리 호출 dao.insert(progrmNm + "Dao.create", command); }