BBJSP Scriptlet (Deprecated)

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

Description

In BBj 16.0 and higher, the BBjspScriptlet can be used in a BBJSPBBJSP Page to execute BBj program code during the execution cycle of the page.

The BBjspScriptlet should be used carefully and as a last resort when the logic cannot be placed in external bbj program files.

Remarks

a scriptlet begins with <%, contains BBj program code and ends with %>. Here is an example:

Example

<%
    theVect! = new BBjVector() 
    theVect!.add("Another VECTOR...")
    theVect!.add("with nothing much in it")
    #PageContext!.setAttribute("theVector",theVect!)
    #PageContext!.write("<h3>A scriptlet can output HTML</h3>")
%>
${theVector}

See Also

BBJSP

BBJSP Page