BBjspPageContext::getAttributeNamesInScope (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 16.0 and higher, this method returns a BBjVector containing the names of bound attributes within the specified scope.

Syntax

Return Value

Method

BBjVector

getAttributeNamesInScope(int scope)

Parameters

Variable

Description

scope

specifies the context level (scope) to search

Return Value

a BBjVector containing the bound attribute names.

Remarks

Example

This example demonstrates how this works in a BBJSP web-page

<%@ taglib uri='/WEB-CFG/tld/core.tld' prefix='c' %>
<html>
    <body>
        <h1>Hello from BBJSP</h1>
        <ul>
            <c:iterate data="<%= #PageContext!.getAttributeNamesInScope(1) %>" id="name">
                <%
                    REM = Get the "name" from the page context
                    name$ = #PageContext!.getAttribute("name")
                %>
                <li><b>${name}</b> = <%= str(#PageContext!.getAttribute(name$)) %>
            </c:iterate>
        </ul>
    </body>
</html>

See Also

BBJSP

BBjspPageContext