Setting up EAServer login variables

4GL JSP pages make it easy to set up client login for pages that access EAServer components. If your application prompts users for user name and password, you can bind this data to either a page or a session variable. By using a session variable, a user can log in once during a browser session, and then access multiple EAServer components from the server using the same user name and password.

StepsTo set up login variables:

  1. Right-click in a 4GL JSP page open in the HTML editor, then select Page Properties from the pop-up menu.

  2. In the Page Properties dialog box, click the EAServer tab.

  3. Click the New button on the EAServer page.

    The cursor displays in a new line in the list box of components for the page. An ellipsis button displays on the same line.

  4. Click the ellipsis button on the new line under Component Name.

    The Select EAServer Component dialog box displays.

  5. Specify the user ID (user name) and password for the component, and the appropriate binding type for each value.

    You can bind the User ID and Password for the component to a constant value, a page parameter, a page variable, or a session variable.

    For more information about binding, see “About page navigation”.

    Shown is a sample Select EAServer Component dialog box. At top is a System Tree in a  box labeled Select an existing E A Server Component with the component Artist under E Music selected. Below this is a drop down list labeled Interface that is grayed, a Component text box with the entry e Music / Artist, and a Server text box with the entry local host : 9000. Next is a User ID group box with a Bind Type drop down with Session Variable selected and a Value drop down with an entry of User I D, then a Password group box with Bind Type of Page Parameter and Value MY Param 1.