EGL Reference Guide for iSeries
The EGL forward statement is invoked from a page handler or from an
EGL program. The primary purpose is to display a Web page with variable
information; but the statement also can invoke a servlet or Java program
that runs in the Web application server.
The statement acts as follows:
- Commits recoverable resources, closes files, and releases locks
- Forwards control
- Ends the code that runs the forward statement
The syntax diagram is as follows:

- argument
- An item or record that is passed to the code being invoked. The
names of an argument and its corresponding parameter must be the same in all
cases. You may not pass literals.
Various restrictions are in effect:
- If you are invoking a page handler, the arguments must be compatible with
the parameters specified for the onPageLoad function of the page
handler. The function (if any) may have any valid name and is
referenced by the page handler property OnPageLoad.
- If you are invoking a program, the arguments must be compatible with the
program parameters.
The following details may be of interest, depending on how you are using
the technology:
- to label targetID
- Specifies a Java Server Faces (JSF) label, which identifies a mapping in a
run-time JSF-based configuration file. The mapping in turn identifies
the object to invoke, whether a JSP (usually one associated with an EGL page
handler), an EGL program, a non-EGL program, or a servlet. The word
label is optional, and targetID is a quoted string.
Related reference
Function invocations
sysLib.getRequestAttr
sysLib.getSessionAttr
sysVar.transferName
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.