BBJSP Scriptlet (Deprecated)

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("

A scriptlet can output HTML

") %> ${theVector}

See Also

BBJSP

BBJSP Page