sysLib.getRequestAttr

The system function sysLib.getRequestAttr uses a specified key to retrieve an argument from the request object into a specified variable. This function is useful in page handlers and in programs that run in Web applications.

If an object is not found with the specified key, the target variable is unchanged. If the retrieved object is of the wrong type, an exception is thrown and the program or page handler terminates.

You can place an argument in the request object by using the system function sysLib.setRequestAttr. The argument object placed in the servlet's request collection is available for access as long as the servlet request is valid. Submitting a form from a page causes the creation of a new request.


sysLib.getRequestAttr syntax diagram

key

A character literal or an item of any character type.

argument

An item, record, or array.

Related concepts
PageHandler part

Related reference
sysLib.setRequestAttr