© Dave Wolf, A.J. Henley 2017

Dave Wolf and A.J. Henley, Java EE Web Application Primer, https://doi.org/10.1007/978-1-4842-3195-1_13

13. The Stateless Nature of the Web

Dave Wolf and A. J. Henley2

(1)New York, USA

(2)Washington, D.C., District of Columbia, USA

A web application does not maintain state. It has no memory. Each request to the web server is an independent event. Each request does not know about previous requests. When you send your username and password, the web server views this as an independent event. It does not keep track of what you’re logging in to. The information is simply sent to the server.

When you submit a form, all the information about what to do with the form data must be sent along with the form. Why? Because each ...

Get Java EE Web Application Primer: Building Bullhorn: A Messaging App with JSP, Servlets, JavaScript, Bootstrap and Oracle now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.