May 2001
Intermediate to advanced
1088 pages
30h 13m
English
As you just saw in the HelloWorldServlet, a servlet is a Java class that implements a few important methods. You can choose to implement these methods yourself or create a subclass of an existing servlet class that already implements these methods. The Servlet interface defines the methods that are required for a Java class to become a servlet. The interface definition is shown in Listing 13.2.
package javax.servlet; public interface Servlet { public void destroy(); public ServletConfig getServletConfig(); public String getServletInfo(); public void init(ServletConfig config) throws ServletException; public void service(ServletRequest request, ServletResponse ... |
Read now
Unlock full access