So basically, Pad was right by saying:
Isn't any attribute bound to a session available to the only servlets that are accessed in the same session? How could it be available to all servlets in the web app (refer the phrase - same ServletContext?
For me, this question was also very awkward.
Session attributes are visible for the servlets which belongs to the same session.
By the way, there is a question: what should you understand by "same ServletContext".
Should you treat two identical applications in a cluster (working on different JVMs) as using the "same ServletContext"?
This is true if you understand it as a "logic context", but not when you treat it as a ServletContext object. This ServletContext object will be different on both JVM's but you can still access session attributes from both of them.
Please straighten me if I'm not right.
Cheers