Servlet이란?
Servlet 작성규칙
doGet 또는 doPost(httpServletRequest, httpServletResponse)
HttpServletRequest: 사용자의 정보를 서블릿 엔진에 전달하는 객체
HttpServletResponse: 서버에서 만든 응답을 암호화해서 사용자에게 전달하는 객체
doGet 메소드의 호출: html form 태그에서 method=get일 때 호출, URL 주소창에 servlet url을 입력했을 때도 호출
doPost 메소드의 호출: html form 태그에서 method=post일 때 호출
예외처리
throws 절에 있는 ServletException과 IOException은 생략 가능, 다른 Exception은 추가 할 수 없음.