Monday, May 4, 2015

Servlet Class


Servlet is J2EE server driven technology to create web applications in java. The javax.servlet and
javax.servlet.http packages provide interfaces and classes for writing our own servlets.
javax.servlet.Servlet interface, which defines servlet lifecycle
All servlets must implement the javax.servlet.Servlet
methods. When implementing a generic service, we can extend the GenericServlet class provided
with the Java Servlet API. The HttpServlet class provides methods, such as doGet() and doPost(),
specific for handling HTTP-specific services.
Most of the times, web applications are accessed using HTTP protocol and thats why we mostly extend HttpServlet class.

No comments:

Post a Comment

Contact Form

Name

Email *

Message *