1. DB 연동 관련 Driver 추가

2. DB 연동 후 데이터 출력 test 파일 제작
This commit is contained in:
mcutegs2
2020-06-16 18:00:55 +09:00
parent a7dd2177cd
commit 866c1f9516
6 changed files with 28 additions and 32 deletions

View File

@@ -14,7 +14,11 @@ public class BoardViewCommand implements Command {
}
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
BoardDao dao = new BoardDao();
BoardVo vo = new BoardVo();
vo = dao.select(vo);
request.setAttribute("print", vo);
return "boardView.jsp";
}
}