All servlets must implement the Servlet interface either directly or indirectly. Java servlets class does not have a main() method, so all servlets must implement the javax.servlet.Servlet interface. It defines five methods, including three life-cycle methods. You may read the life-cycle methods such as init(), service() and destroy() in the subsequent section 2.5 and other two methods are getServletConfig() and getServletInfo().
0 टिप्पणियाँ:
Post a Comment