728x90 webServlet1 [JSP] ch01-04. LifeCycle 1-4. LifeCycle @WebServlet("/ch01/ex04/lifecycle") public class LifeCycle extends HttpServlet { private int initCnt = 0; private int doGetCnt = 0; private int destroyCnt = 0; public void init(ServletConfig conf) throws ServletException{ System.out.printf("intiCnt: %d\n", ++initCnt); } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOExcept.. WEB/JSP 2017. 11. 1. 이전 1 다음 728x90