GenericServlet
Implementation of the ‘Servlet’
interface need to be provided by the all servlets.
To facilitate indirect implementation of ‘Servlet’
interface is helper class named javax.servlet.GenericServlet
is provided by the ‘sun microsystem’. Details an abstract class which
implements servlet interface and defines all it’s methods except service() method. It is used as a super class by
the user define servlets.
public class UserServlet extends GenericServlet
{
//Service()
method is defined
}
Servlet
interface and its implementation class GenericServlet
provides a generic model (protocol independent) of request processing.







No comments:
Post a Comment