BBjspPageContext::getAttributeNames (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 this BBjspPageContext.

Syntax

Return Value

Method

BBjVector

getAttributeNames()

Parameters

None.

Return Value

a BBjVector containing the bound attribute names.

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!.getAttributeNames() %>" id="name">                 <%                     REM = Get the "name" from the page context                     name$ = #PageContext!.getAttribute("name")                 %>                 <li><b>${name}</b> = <%= str(#PageContext!.getAttribute(name$)) %>                 <%                     REM = Now remove the attribute                     #PageContext!.removeAttribute("name")                 %>             </c:iterate>         </ul>     </body> </html>

See Also

BBJSP

BBjspPageContext