Multiple input and output pages

You can use multiple input and output pages for a Web interaction. The multiple pages are specified when you select the options Use input pages and Use output pages on the wizard page Specify the Input and Output Pages for your Web Interaction.

You can use pages in a parallel, independent organization, and link program parameters to the same fields on multiple pages.

Note: The following description refers to multiple input pages within a Web application that uses a program on an iSeries host. You can also use multiple pages with Java bean methods in the same way.

Use pages in a parallel organization

Parallel use of pages implies that the pages are independent of each other. The independent pages can contain fields that are linked to the same input parameters in a host program. However, only one of the pages can be used to input data to the host program for processing at any one time. The results of the processing are returned to the output pages defined in the interaction.

Consider the following example:

When the application runs, either input1.jsp or input2.jsp displays in the browser.

In this parallel use of independent pages, the same program parameter can be linked to more than one field if the field is on a different page. In this way, more than one input page can be defined in the Web Interaction wizard to call the same host program.