Attribute API
The three attribute scopes—context,
request, and session—are handled by
the ServletContext, ServletRequest,
and HttpSession interfaces. The API
methods for attributes are exactly the
same in every interface
Object getAttribute(String name)
void setAttribute(String name, Object value)
void removeAttribute(String name)
Enumeration getAttributeNames()
request, and session—are handled by
the ServletContext, ServletRequest,
and HttpSession interfaces. The API
methods for attributes are exactly the
same in every interface
Object getAttribute(String name)
void setAttribute(String name, Object value)
void removeAttribute(String name)
Enumeration getAttributeNames()