O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

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

Object Scoping with JSP

Another feature that JSP and servlets bring to the table is the idea of object persistence across HTTP requests. When a browser first connects to a server, a session is established that is uniquely connected to that client. This allows information to be available from one request to the next, making it seem to the user as if all the requests were part of one session.

HOW ARE SESSIONS TRACKED?

When a client makes a request to a JSP server, how does the server associate the client with a specific session? The answer is, it depends.

If the client browser has enabled session cookies (that is, cookies that are kept only as long as the browser is running and are lost on shutdown), they are used to track the session. On ...

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