Today I am going to present the most important methods, classes and interfaces in the Servlet API.
public interface Servlet
Main interface from which all starts. It defines key methods for the life cycle of servlet:
public void init(ServletConfig config) throws ServletException; public ServletConfig getServletConfig(); public void service(ServletRequest req, ServletResponse res) throws ServletException, java.io.IOException; public void destroy();
and one additional method
public String getServletInfo();
which should return information about servlet (version, author, resposibility, etc.) Continue reading this post …


