BBjspPageContext (Deprecated)
The BBJSP system is deprecated. For new development, use BBxServlet.
Description
In BBj 16.0 and higher, this class provides core functionality to BBJSP Widgets and is used internally by all BBJSP Page files.
A BBjspPageContext instance is available to BBJSP BBJSP Pages and Code Tags through the public field #PageContext! and is passed to all BBJSP Widget objects used on BBJSP pages. The BBjspPageContext instance provides access to attributes within the scope of either PAGE or SESSION and the BBJSPLogging module. which can be used by page developers to output specific information into the context's log files. BBJSP Widget developers are likely to need this class's methods as attributes set by a BBJSP Widget are available directly to a BBJSP Page through the BBJSP Expression Language.
Methods of BBjspPageContext
Return Value |
Method |
---|---|
boolean |
contains(string name) |
void |
flush() |
Object |
getAttribute(string name) |
Object |
getAttribute(string name, int scope) |
getAttributeNamesInScope(int scope) |
|
string |
|
void |
removeAttribute(string name) |
void |
removeAttribute(string name, int scope) |
void |
runPipelineByName(string name) |
void |
|
void |
setAttribute(string name, Object object) |
void |
setAttribute(string name, Object object, int scope) |
Remarks
The examples demonstrate how a BBJSP Widget can place data into the BBjspPageContext that can be accessed during page processing.
Constants
1 |
PAGE_SCOPE |
2 |
SESSION_SCOPE |
3 |
APPLICATION_SCOPE |
Example
This example demonstrates how this works in a BBJSP widget
REM
=== |
This example demonstrates how this works in a BBJSP web-page
<%@
taglib uri='/WEB-CFG/tld/core.tld' prefix='c' %> |