Java Servlet – Key Points

Java Servlet

  • A servlet is a server-side program which executes inside a Web server, such as Apache.
  • It Receives HTTP requests from the client and provides HTTP responses
  • The javax.servleand javax.servlet.http packages provide interfaces and classes for writing servlets.
  • All servlets must implement the Servlet interface, which defines life-cycle methods.
  • When implementing a generic service, you can use or extend the GenericServlet class provided with the Java Servlet API. TheHttpServlet class provides methods, such as doGet and doPost, for handling HTTP-specific services.
Advertisements

One thought on “Java Servlet – Key Points

  1. Pingback: Sing's Tech Musings » Blog Archive » java.lang.ClassCastException: [ServletName] cannot be cast to javax.servlet.Servlet: How to resolve?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s