Monthly Archive: December 2013

Class HttpServlet

The HttpServlet class extends the GenericServlet class and implements Serializable interface. It provides http specific methods such as doGet, doPost, doHead, doTrace etc. The javax.servlet.http.HttpServlet class is a slightly more advanced base class than the …

Difference between GenericServlet and HttpServlet

GenericServlet class implements Servlet, ServletConfig and Serializable interfaces. It provides the implementaion of all the methods of these interfaces except the service method. GenericServlet may be directly extended by a servlet, although it’s more common …

Servlets – Form Data & Basics of Web

Basics of Web- There are some key points that must be known by the servlet programmer. Let’s first briefly discuss these points before starting the servlet. These are: HTTP HTTP Request Types Difference between Get …

Advantages of Servlets over CGI

What is web application? A web application is an application accessible from the web. A web application is composed of web components like Servlet, JSP, Filter etc. and other components such as HTML. The web …

What is web application servlet?

A web application is a dynamic extension of a web or application server. There are two types of web applications: Presentation-oriented: A presentation-oriented web application generates interactive web pages containing various types of markup language …

Hello World Example in Servlet Interface

Servlets are Java classes which service HTTP requests and implement the javax.servlet.Servlet interface. Web application developers typically write servlets that extend javax.servlet.http.HttpServlet, an abstract class that implements the Servlet interface and is specially designed to …

Servlet API

The javax.servlet and javax.servlet.http packages represent interfaces and classes for servlet api. Let’s see what are the interfaces of javax.servlet package. Interfaces in javax.servlet package There are many interfaces in javax.servlet package. They are as …