When you programatically *add* things to a request or a session, the way to get these 'extra' things is within the attribute space. setAttribute() and getAttribute() are used for this purpose. Only those things that you "set" with setAttribute can be "gotten" with getAttribute.