Using parameters and variables

Web pages rely on page parameters and page variables to share data between Web pages or to pass data from one page to another. For more information about page parameters and variables, see “Managing page data”.

4GL advantage

4GL JSP pages provide a straightforward way to keep track of parameters and variables during development. You can define parameters and variables from the Page Properties dialog box. The 4GL extensions to the Web Target object model help manage the parameters and variables when the page is processed by JSP servers.

You can set target page parameters for a non-4GL page, but to take advantage of the Web Target user interface for parameter binding, the linking page must be 4GL enabled.

Navigation style

The type of value you can pass to a target page parameter depends on the navigation style you select. You can navigate to another page through a hyperlink, a form submit, or a server-side redirect script. However, if you use only the hyperlink navigation style, you lose the advantages of 4GL functionality for passing parameters.

The 4GL form submit style is equivalent to setting FORM element attributes as follows: the ACTION attribute to the target URL and the METHOD attribute to POST. The entire 4GL page is considered as a single form. You select the target URL on the Destination tab of the Page Properties dialog box. Parameters on the target page are automatically bound to parameters, variables, or controls on the linking page that have the same names.

For more information on navigation style and its effects on passing parameters, see “About page navigation”.

Steps in passing parameters

Typically, the steps involved in passing parameters from one page to another include:

For information on referring to parameters and variables in scripts on 4GL JSP pages, see “Adding scripts to 4GL JSP pages”.