Cisco CloudCenter: Get the Hybrid IT Advantage

Java Servlet

Definition - What does Java Servlet mean?

Java Servlets are server-side Java program modules that process and answer client requests and implement the servlet interface. It helps in enhancing Web server functionality with minimal overhead, maintenance and support.

A servlet acts as an intermediary between the client and the server. As servlet modules run on the server, they can receive and respond to requests made by the client. Request and response objects of the servlet offer a convenient way to handle HTTP requests and send text data back to the client.

Since a servlet is integrated with the Java language, it also possesses all the Java features such as high portability, platform independence, security and Java database connectivity.

Techopedia explains Java Servlet

There are two Java Servlet types: Basic and HTTP.

HTTP servlets are used as follows:

  • When an HTML form is submitted, the servlet processes and stores the data.
  • When a client supplies a database query, the results are provided to the client by the servlet.
  • In most cases, the server uses the common gateway interface (CGI).

However, Java Servlets have many advantages over CGI, including:

  • A servlet runs in the same process, eliminating the need to create a new process for every request.
  • The CGI program must be reloaded for each CGI request. A servlet, however, does not require reloading and remains in the memory between requests.
  • A servlet answers multiple requests simultaneously by using one instance, saving memory and easily managing persistent data.
  • The servlet engine runs in a sandbox or restricted environment, protecting the server from potentially harmful servlets.
Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.