EGL Reference Guide for iSeries

Web-application system words

sysLib.clearRequestAttr

The system function sysLib.clearRequestAttr removes the argument that is associated with the specified key in the request object. This function is useful in page handlers and in programs that run in Web applications.

You can set an argument in the request object by using the system function sysLib.setRequestAttr. You can retrieve the argument by using the system function sysLib.getRequestAttr.



sysLib.clearRequestAttr syntax diagram


Related concepts
PageHandler part


Related reference
sysLib.getRequestAttr
sysLib.setRequestAttr

sysLib.clearSessionAttr

The system function sysLib.clearSessionAttr removes the argument that is associated with the specified key in the session object. This function is useful in page handlers and in programs that run in Web applications.

You can set an argument in the session object by using the system function sysLib.setSessionAttr. You can retrieve the argument by using the system function sysLib.getSessionAttr.



sysLib.clearSessionAttr syntax diagram


Related concepts
PageHandler part


Related reference
sysLib.getSessionAttr
sysLib.setSessionAttr

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

sysLib.getSessionAttr

The system function sysLib.getSessionAttr uses a specified key to retrieve an argument from the session 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 session object by using the system function sysLib.setSessionAttr.



sysLib.getSessionAttr 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.setSessionAttr

sysLib.setRequestAttr

The system function sysLib.setRequestAttr uses a specified key to place a specified argument in the request object. This function is useful in page handlers and in programs that run in Web applications. You can retrieve the argument later by using the system function sysLib.getRequestAttr.



sysLib.setRequestAttr syntax diagram

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. The argument object is placed in the servlet's request collection and 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.


Related concepts
PageHandler part


Related reference
sysLib.getRequestAttr

sysLib.setSessionAttr

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



sysLib.setSessionAttr syntax diagram

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.


Related concepts
PageHandler part


Related reference
sysLib.getSessionAttr


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]