Getting Started with Servlets and JSP using Tomcat

We have shifted..

https://programmingpalace.wordpress.com/ is now http://thetechstory.com/

Find this Tutorial in the given link.

http://thetechstory.com/2012/10/26/getting-started-with-servlets-and-jsp-using-tomcat/

Advertisements

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.