❮ PreviousNext ❯ The HttpSession object is used for session management. A session contains information specific to a particular user across the whole application. When a user enters… [Read More]
ServletContext Interface
❮ PreviousNext ❯ In the last tutorial, we discussed ServletConfig, the Servlet Container creates ServletConfig object for each Servlet during initialization. The main difference between… [Read More]
ServletResponse Interface
❮ PreviousNext ❯ The servlet container is connected to the web server that receives Http Requests from client on a certain port. When client sends… [Read More]
ServletRequest Interface with example
❮ PreviousNext ❯ When a client sends a request to the web server, the servlet container creates ServletRequest & ServletResponse objects and passes them as… [Read More]
Servlet Class Hierarchy
The Servlet interface is the root interface of the servlet class hierarchy. All Servlets need to either directly or indirectly implement the Servlet interface. The… [Read More]
Servlet Life Cycle
❮ PreviousNext ❯ Servlet life cycle can be described as a series of steps through which a servlet goes during its life span, starting from… [Read More]
Servlet Architecture: Basics of Servlets
A Servlet is a class, which implements the javax.servlet.Servlet interface. However instead of directly implementing the javax.servlet.Servlet interface we extend a class that has implemented the… [Read More]
Working of Servlet
❮ PreviousNext ❯ Before I start explaining how the servlet works, lets get familiar with these three terms. Web Server: it can handle HTTP Requests… [Read More]
Servlet Tutorial for beginners
Next ❯ Servlet is a java program that runs inside JVM on the web server. It is used for developing dynamic web applications. Before we… [Read More]