A. 在創(chuàng)建自己的Servlet時候,應該在初始化方法init()方法中創(chuàng)建Servlet實例B. 在Servlet生命周期的服務階段,執(zhí)行service()方法,根據(jù)用戶請求的方法,執(zhí)行相應的doGet()或是doPost()方法C. 在銷毀階段,執(zhí)行destroy()方法后系統(tǒng)立刻進行垃圾回收D. destroy()方法僅執(zhí)行一次
A. init() B. doPost() C. destroy() D.service()
A. sendURL B. redirectURL C. sendRedirect() D. getRequestDistpatcher(),