posted 15 years ago
The ServletContext basically represents your web application. This is where your servlets "live." So, as Todd said, you can share data among your servlets by setting attributes on the ServletContext. ServletContext attributes are web application-wide. They are not specific to any one user (for that use HTTPSession attributes). They are not specific to any one request (for that use ServletRequest attributes).