EGL Reference Guide for iSeries

forward

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:

  1. Commits recoverable resources, closes files, and releases locks
  2. Forwards control
  3. Ends the code that runs the forward statement

The syntax diagram is as follows:



Syntax diagram for the forward statement, without a UI record

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:

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 ]