1: public class U489 extends HttpServlet { 2: protected void doGet(HttpServletRequest request, … ) throws …… { …… } 3: protected void doPost(HttpServletRequest request, … ) throws …… { …… } 4: // 테스트를 위한 main()함수나 디버깅용 로그 출력문 등이 남아 있다. 5: public static void main(String args[]) { 6: System.err.printf("Print debug code"); 7: } 8: ……