setSessionAttr()

The system function J2EELib.setSessionAttr uses a specified key to place a specified argument in the session object. This function is useful in PageHandlers and in programs that run in Web applications. You can retrieve the argument later by using the system function J2EELib.getSessionAttr.

  J2EELib.setSessionAttr(
    key STRING in,
    argument attribute in)
key
A character literal or an item of any character type.
argument
An item, record, or array.

In the generated Java™ output, item arguments are passed as primitive Java objects (String, Integer, Decimal, and so on). Record arguments are passed as record beans. Arrays are passed as an array list of the associated type.

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.