Home » Enterprise Java » servlet (page 2)

servlet

Java Servlet Session Management Example

We all know that HTTP is a stateless protocol i.e. all requests and responses are independent. But sometimes developers need to keep track of the client’s activity across the multiple requests. In this tutorial, we will see how to achieve the Session Management in Servlet Java programming. 1. Introduction Session tracking or Session management is an important feature of the ...

Read More »

Java Servlet Database Connectivity Example

Servlets are modules of the Java code that run in a server application to answer the client requests. In this tutorial, we will explain and show you how to connect the servlet to the database. 1. Introduction Servlet is a Java program which exists and executes in the J2EE servers and is used to receive the HTTP protocol request, process ...

Read More »

Java Servlet Cookie Methods Example

Servlets are modules of the Java code that run in a server application to answer the client requests. In this tutorial, we will show you how to store the user information in the cookie object and access it in the Servlet. 1. Introduction Servlet is a Java program which exists and executes in the J2EE servers and is used to ...

Read More »

Java Servlet HTTP Response Headers Example

Servlets are modules of the Java code that run in a server application to answer the client requests. In this tutorial, we will explain and show you how to use the HTTP response headers in the Servlet page. 1. Introduction Servlet is a Java program which exists and executes in the J2EE servers and is used to receive the HTTP ...

Read More »

Java Servlet HTTP Request Headers Example

Servlets are modules of the Java code that run in a server application to answer the client requests. In this tutorial, we will explain and show you how to display the HTTP header information of a request in the Servlet page. 1. Introduction Servlet is a Java program which exists and executes in the J2EE servers and is used to ...

Read More »

Java Servlet XAMPP Tutorial

In this article we will briefly discuss what Xampp (Apache + MariaDB + PHP + Perl) (pronounced “shamp”) is and how to “run” a Java Servlet application from it using linux. I use the word run in the loosest possible sense as the Servlet application will actually be driven from inside Tomcat which will be proxied to from Xampp or ...

Read More »

Java Servlet Bean Example

Servlets are modules of the Java code that run in a server application to answer the client requests. In this tutorial, we will explain how to handle the JavaBean in a Servlet. 1. Introduction Servlet is a Java program which exists and executes in the J2EE servers and is used to receive the HTTP protocol request, process it and send ...

Read More »

Java Servlet Hidden Field Example

A hidden form field is a technique used to store the session information for a particular client and is one of an important Session Tracking Technique. In this tutorial, we will explain and show you how to handle the hidden fields in a Servlet. 1. Introduction Session Tracking is a technique to maintain the requests of the same user for a ...

Read More »

Java Servlet onclick Example

Servlets are modules of the Java code that run in a server application to answer the client requests. They are not tied to a specific client-server protocol but are most commonly used with HTTP. The word “Servlet” is often used in the meaning of “HTTP Servlet“. In this tutorial, we will explain and show you how to call a Servlet ...

Read More »

Java Servlet Sync Context Example

Async Servlet was introduced in Servlet 3.0. It is a great way to deal with the thread starvation problem with the long-running threads. In this tutorial, we will understand what Async Servlet is.                     1. Introduction Let’s say we have a Servlet that takes a lot of time to process, something ...

Read More »