O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Execution of Java Servlets

Java servlets are instances of a Java class that operate as a Web component. They are invoked to manage an HTTP request and can optionally generate a response to the request.

Java servlets operate within a container, an operating environment for the component which provides various services. This container is usually provided by the Web server or application server.

The design of the servlet environment reflects the stateless nature of HTTP. The servlet is essentially stateless; there is no guarantee that any instance members of the servlet class will retain their values from one client invocation to the next, so client session information should not be stored in servlet instance members. Java servlets do provide ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required