❮ PreviousNext ❯ Servlet Container creates ServletConfig object for each Servlet during initialization, to pass information to the Servlet. This object can be used to… [Read More]
RequestDispatcher methods with examples in Servlet
❮ PreviousNext ❯ The RequestDispatcher interface defines an object that receives the request from client and dispatches it to the resource(such as servlet, JSP, HTML… [Read More]
How to use load-on-startup tag in web.xml file with Example
❮ PreviousNext ❯ By default Servlet is not loaded until servlet container receives a request for the particular servlet. This may cause a delay in… [Read More]
How to create and run Servlet in Eclipse IDE
❮ PreviousNext ❯ This is a complete guide for installing Eclipse, setting up apache tomcat server and running your first hello world servlet application. Download… [Read More]
welcome-file-list tag in web.xml file of Project
❮ PreviousNext ❯ Have you ever seen <welcome-file-list> tag in your web.xml file and wondering what it is? In this text, I will explain what is… [Read More]
GenericServlet Class with example
❮ PreviousNext ❯ While discussing Servlet API, I have discussed little bit about Generic Servlet. In this article, I will discuss Generic Servlet in detail…. [Read More]
Servlet Interface explained with Example
❮ PreviousNext ❯ In my last guide about Servlet API, I have explained that to create any Servlet you must implement the Servlet interface directly… [Read More]
Servlet API
❮ PreviousNext ❯ You need to use Servlet API to create servlets. There are two packages that you must remember while using API, the javax.servlet… [Read More]
HttpServlet class with example
❮ PreviousNext ❯ In Servlet API, I have discussed little bit about Http Servlet. In this article, I will discuss Http Servlet in detail. Unlike… [Read More]
Cookies in Servlet with example
❮ Previous In the last guide, I have covered Sessions in Servlet. Here we will discuss Cookies which is also used for session management. Let’s… [Read More]
HttpSession with example in Servlet
❮ 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]