BBjspWebSession::getAttribute (Deprecated)
The BBJSP system is deprecated. For new development, use BBxServlet.
Description
In BBj 16.0 and higher, this method returns the object bound with the specified name in this BBjspWebSession, or null if no object is bound under the name.
Syntax
Return Value |
Method |
Object |
getAttribute(string name) |
Parameters
Variable |
Description |
name |
name of attribute to be retrieved |
Return Value
the value bound to the name
Remarks
The example below shows getting the attribute ‘userID’ from the session within a BBJSP BBJSP Servlet.
Example
This example demonstrates how this works in a BBJSP web-page
<%@ taglib uri='/WEB-CFG/tld/core.tld' prefix='c' %> |
This example demonstrates how this works in a BBJSP servlet
class public MyServlet |