Archive for 'Miscellaneous Topics' Category

Servlets–>Notes

11 October 2006

javax.servlet.Servlet interface is very important because it encapsulates the life cycle methods of a servlet and it is the interface that all servlets must implement. “The javax.servlet Package Reference.”
The seven interfaces are as follows:
• RequestDispatcher
• Servlet
• ServletConfig
• ServletContext
• ServletRequest
• ServletResponse
• SingleThreadModel
The three classes are as follows:
• GenericServlet
• ServletInputStream
• ServletOutputStream
And, finally, the exception classes are these:
• ServletException
• UnavailableException

A Servlet’s Life Cycle
The init( ) Method
The init method is called […]

No Comments »